@hero-design/rn 8.64.6-alpha.0 → 8.64.6

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,5 @@
1
+ 
2
+ src/index.ts → lib/index.js, es/index.js...
3
+ (!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
4
+ (!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
5
+ created lib/index.js, es/index.js in 1m 1.2s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.64.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3329](https://github.com/Thinkei/hero-design/pull/3329) [`65a9eae2735aa565c2a65416e760aba19de42565`](https://github.com/Thinkei/hero-design/commit/65a9eae2735aa565c2a65416e760aba19de42565) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [PinInput] Fix PinInput not showing context panel when long press
8
+
3
9
  ## 8.64.5
4
10
 
5
11
  ### Patch Changes
package/es/index.js CHANGED
@@ -15609,7 +15609,7 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
15609
15609
  disabled: disabled,
15610
15610
  error: error
15611
15611
  });
15612
- var maskedValueWithExtraSpace = !value ? '*' : value;
15612
+ var maskedValueWithExtraSpace = Platform.OS === 'android' && !value ? '*' : value;
15613
15613
  var focus = useCallback(function () {
15614
15614
  if (inputRef !== null && inputRef !== void 0 && inputRef.current) {
15615
15615
  inputRef.current.focus();
@@ -15669,7 +15669,6 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
15669
15669
  onFocus: focus,
15670
15670
  onBlur: blur,
15671
15671
  maxLength: length,
15672
- caretHidden: true,
15673
15672
  pointerEvents: "box-none",
15674
15673
  keyboardType: "numeric",
15675
15674
  testID: "pin-hidden-input",
package/lib/index.js CHANGED
@@ -15639,7 +15639,7 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
15639
15639
  disabled: disabled,
15640
15640
  error: error
15641
15641
  });
15642
- var maskedValueWithExtraSpace = !value ? '*' : value;
15642
+ var maskedValueWithExtraSpace = reactNative.Platform.OS === 'android' && !value ? '*' : value;
15643
15643
  var focus = React.useCallback(function () {
15644
15644
  if (inputRef !== null && inputRef !== void 0 && inputRef.current) {
15645
15645
  inputRef.current.focus();
@@ -15699,7 +15699,6 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
15699
15699
  onFocus: focus,
15700
15700
  onBlur: blur,
15701
15701
  maxLength: length,
15702
- caretHidden: true,
15703
15702
  pointerEvents: "box-none",
15704
15703
  keyboardType: "numeric",
15705
15704
  testID: "pin-hidden-input",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.64.6-alpha.0",
3
+ "version": "8.64.6",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -50,7 +50,7 @@
50
50
  "@eslint/compat": "^1.1.1",
51
51
  "@eslint/eslintrc": "^3.1.0",
52
52
  "@eslint/js": "^9.8.0",
53
- "@hero-design/eslint-plugin": "9.1.0",
53
+ "@hero-design/eslint-plugin": "9.2.0",
54
54
  "@hero-design/react-native-month-year-picker": "^8.42.10",
55
55
  "@react-native-community/datetimepicker": "7.6.1",
56
56
  "@react-native-community/slider": "^4.5.1",
@@ -93,6 +93,5 @@
93
93
  "ts-jest": "^29.1.1",
94
94
  "typescript": "4.8.4"
95
95
  },
96
- "prettier": "prettier-config-hd",
97
- "react-native": "src/index.ts"
96
+ "prettier": "prettier-config-hd"
98
97
  }
@@ -203,7 +203,6 @@ exports[`rendering renders correctly 1`] = `
203
203
  </View>
204
204
  <TextInput
205
205
  autoFocus={false}
206
- caretHidden={true}
207
206
  editable={true}
208
207
  keyboardType="numeric"
209
208
  maxLength={4}
@@ -461,7 +460,6 @@ exports[`rendering renders correctly when disabled 1`] = `
461
460
  </View>
462
461
  <TextInput
463
462
  autoFocus={false}
464
- caretHidden={true}
465
463
  editable={false}
466
464
  keyboardType="numeric"
467
465
  maxLength={4}
@@ -837,7 +835,6 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
837
835
  </View>
838
836
  <TextInput
839
837
  autoFocus={false}
840
- caretHidden={true}
841
838
  editable={true}
842
839
  keyboardType="numeric"
843
840
  maxLength={6}
@@ -1148,7 +1145,6 @@ exports[`rendering renders correctly when there is error 1`] = `
1148
1145
  </View>
1149
1146
  <TextInput
1150
1147
  autoFocus={false}
1151
- caretHidden={true}
1152
1148
  editable={true}
1153
1149
  keyboardType="numeric"
1154
1150
  maxLength={4}
@@ -1407,7 +1403,6 @@ exports[`rendering renders correctly with textContentType and autoComplete 1`] =
1407
1403
  <TextInput
1408
1404
  autoComplete="one-time-code"
1409
1405
  autoFocus={false}
1410
- caretHidden={true}
1411
1406
  editable={true}
1412
1407
  keyboardType="numeric"
1413
1408
  maxLength={4}
@@ -7,7 +7,7 @@ import React, {
7
7
  useRef,
8
8
  useState,
9
9
  } from 'react';
10
- import { InteractionManager, TextInput } from 'react-native';
10
+ import { InteractionManager, Platform, TextInput } from 'react-native';
11
11
  import type { StyleProp, ViewStyle } from 'react-native';
12
12
  import Icon from '../Icon';
13
13
  import PinCell from './PinCell';
@@ -121,7 +121,8 @@ const PinInput = forwardRef<PinInputHandler, PinInputProps>(
121
121
  const inputRef = useRef<TextInput>(null);
122
122
  const [focused, setFocused] = useState(autoFocus);
123
123
  const state = getState({ disabled, error });
124
- const maskedValueWithExtraSpace = !value ? '*' : value;
124
+ const maskedValueWithExtraSpace =
125
+ Platform.OS === 'android' && !value ? '*' : value;
125
126
 
126
127
  const focus = useCallback(() => {
127
128
  if (inputRef?.current) {
@@ -199,7 +200,6 @@ const PinInput = forwardRef<PinInputHandler, PinInputProps>(
199
200
  onFocus={focus}
200
201
  onBlur={blur}
201
202
  maxLength={length}
202
- caretHidden
203
203
  pointerEvents="box-none"
204
204
  keyboardType="numeric"
205
205
  testID="pin-hidden-input"