@office-iss/react-native-win32 0.71.2 → 0.71.4

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.
Files changed (29) hide show
  1. package/CHANGELOG.json +12709 -12667
  2. package/CHANGELOG.md +24 -6
  3. package/Libraries/Alert/Alert.d.ts +1 -0
  4. package/Libraries/Blob/Blob.js +6 -0
  5. package/Libraries/Components/TextInput/TextInput.d.ts +15 -0
  6. package/Libraries/Components/TextInput/TextInput.js +12 -5
  7. package/Libraries/Components/TextInput/TextInput.win32.js +890 -194
  8. package/Libraries/Components/TextInput/Win32TextInputNativeComponent.js +23 -0
  9. package/Libraries/Components/Touchable/TouchableOpacity.js +2 -3
  10. package/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +2 -2
  11. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +3 -3
  12. package/Libraries/Components/View/ViewAccessibility.d.ts +13 -0
  13. package/Libraries/Components/View/ViewWin32.d.ts +1 -1
  14. package/Libraries/Core/ReactNativeVersion.js +1 -1
  15. package/Libraries/Lists/FlatList.d.ts +6 -6
  16. package/Libraries/Lists/FlatList.js +20 -7
  17. package/Libraries/Lists/VirtualizedList.js +13 -10
  18. package/Libraries/StyleSheet/processAspectRatio.js +12 -2
  19. package/Libraries/TurboModule/TurboModuleRegistry.d.ts +2 -4
  20. package/Libraries/platform-types.d.ts +1 -0
  21. package/overrides.json +7 -7
  22. package/package.json +13 -16
  23. package/src/Libraries/Components/View/ViewWin32.d.ts +1 -1
  24. package/src/Libraries/platform-types.d.ts +1 -0
  25. package/types/index.d.ts +1 -1
  26. package/Libraries/Components/TextInput/TextInput.Types.win32.d.ts +0 -51
  27. package/Libraries/Components/TextInput/TextInput.Types.win32.js +0 -3
  28. package/Libraries/Components/TextInput/TextInput.Types.win32.js.map +0 -1
  29. package/src/Libraries/Components/TextInput/TextInput.Types.win32.ts +0 -68
package/CHANGELOG.md CHANGED
@@ -1,8 +1,26 @@
1
- # Change Log - @office-iss/react-native-win32
2
-
3
- This log was last generated on Mon, 13 Feb 2023 16:16:01 GMT and should not be manually modified.
4
-
5
- <!-- Start content -->
1
+ # Change Log - @office-iss/react-native-win32
2
+
3
+ This log was last generated on Thu, 13 Apr 2023 20:50:06 GMT and should not be manually modified.
4
+
5
+ <!-- Start content -->
6
+
7
+ ## 0.71.4
8
+
9
+ Thu, 13 Apr 2023 20:50:06 GMT
10
+
11
+ ### Patches
12
+
13
+ - Update TextInput.win32 to align with core (30809111+acoates-ms@users.noreply.github.com)
14
+ - Sync dependencies with react-native 0.71.6 (4123478+tido64@users.noreply.github.com)
15
+
16
+ ## 0.71.3
17
+
18
+ Tue, 21 Mar 2023 20:58:57 GMT
19
+
20
+ ### Patches
21
+
22
+ - Align dependencies with react-native@0.71.4 (30809111+acoates-ms@users.noreply.github.com)
23
+ - Minor TS type updates (30809111+acoates-ms@users.noreply.github.com)
6
24
 
7
25
  ## 0.71.1
8
26
 
@@ -4818,4 +4836,4 @@ Mon, 01 May 2017 19:28:16 GMT
4818
4836
 
4819
4837
  ### Patches
4820
4838
 
4821
- - Move @office-iss/react-native to 0.40.1 to fix build
4839
+ - Move @office-iss/react-native to 0.40.1 to fix build
@@ -77,6 +77,7 @@ export interface AlertStatic {
77
77
  type?: AlertType,
78
78
  defaultValue?: string,
79
79
  keyboardType?: string,
80
+ options?: AlertOptions,
80
81
  ) => void;
81
82
  }
82
83
 
@@ -105,6 +105,12 @@ class Blob {
105
105
  blobId: this.data.blobId,
106
106
  offset,
107
107
  size,
108
+ /* Since `blob.slice()` creates a new view onto the same binary
109
+ * data as the original blob, we should re-use the same collector
110
+ * object so that the underlying resource gets deallocated when
111
+ * the last view into the data is released, not the first.
112
+ */
113
+ __collector: this.data.__collector,
108
114
  });
109
115
  }
110
116
 
@@ -45,6 +45,16 @@ export type KeyboardTypeOptions =
45
45
  | KeyboardTypeAndroid
46
46
  | KeyboardTypeIOS;
47
47
 
48
+ export type InputModeOptions =
49
+ | 'none'
50
+ | 'text'
51
+ | 'decimal'
52
+ | 'numeric'
53
+ | 'tel'
54
+ | 'search'
55
+ | 'email'
56
+ | 'url';
57
+
48
58
  export type ReturnKeyType = 'done' | 'go' | 'next' | 'search' | 'send';
49
59
  export type ReturnKeyTypeAndroid = 'none' | 'previous';
50
60
  export type ReturnKeyTypeIOS =
@@ -588,6 +598,11 @@ export interface TextInputProps
588
598
  */
589
599
  keyboardType?: KeyboardTypeOptions | undefined;
590
600
 
601
+ /**
602
+ * Works like the inputmode attribute in HTML, it determines which keyboard to open, e.g. numeric and has precedence over keyboardType.
603
+ */
604
+ inputMode?: InputModeOptions | undefined;
605
+
591
606
  /**
592
607
  * Limits the maximum number of characters that can be entered.
593
608
  * Use this instead of implementing the logic in JS to avoid flicker.
@@ -349,6 +349,9 @@ type IOSProps = $ReadOnly<{|
349
349
  /**
350
350
  * Give the keyboard and the system information about the
351
351
  * expected semantic meaning for the content that users enter.
352
+ * `autoComplete` property accomplishes same behavior and is recommended as its supported by both platforms.
353
+ * Avoid using both `autoComplete` and `textContentType`, you can use `Platform.select` for differing platform behaviors.
354
+ * For backwards compatibility, when both set, `textContentType` takes precedence on iOS.
352
355
  * @platform ios
353
356
  */
354
357
  textContentType?: ?TextContentType,
@@ -1630,16 +1633,20 @@ const ExportedForwardRef: React.AbstractComponent<
1630
1633
  }
1631
1634
  autoComplete={
1632
1635
  Platform.OS === 'android'
1633
- ? // $FlowFixMe
1636
+ ? // $FlowFixMe[invalid-computed-prop]
1637
+ // $FlowFixMe[prop-missing]
1634
1638
  autoCompleteWebToAutoCompleteAndroidMap[autoComplete] ??
1635
1639
  autoComplete
1636
1640
  : undefined
1637
1641
  }
1638
1642
  textContentType={
1639
- Platform.OS === 'ios' &&
1640
- autoComplete &&
1641
- autoComplete in autoCompleteWebToTextContentTypeMap
1642
- ? // $FlowFixMe
1643
+ textContentType != null
1644
+ ? textContentType
1645
+ : Platform.OS === 'ios' &&
1646
+ autoComplete &&
1647
+ autoComplete in autoCompleteWebToTextContentTypeMap
1648
+ ? // $FlowFixMe[invalid-computed-prop]
1649
+ // $FlowFixMe[prop-missing]
1643
1650
  autoCompleteWebToTextContentTypeMap[autoComplete]
1644
1651
  : textContentType
1645
1652
  }