@hero-design/rn 8.64.7-alpha.1 → 8.64.7

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 3.5s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.64.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3336](https://github.com/Thinkei/hero-design/pull/3336) [`34f5cb207ed68fcb4d2882e0175c7c085963332d`](https://github.com/Thinkei/hero-design/commit/34f5cb207ed68fcb4d2882e0175c7c085963332d) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [PinInput] Add value validation logic
8
+
3
9
  ## 8.64.6
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.64.7-alpha.1",
3
+ "version": "8.64.7",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -150,6 +150,20 @@ describe('behaviors', () => {
150
150
  }
151
151
  }
152
152
  );
153
+ it('does not allow typing when the max length is reached', () => {
154
+ const onChangeText = jest.fn();
155
+ const onFulfill = jest.fn();
156
+ const { getByTestId } = renderWithTheme(
157
+ <PinInput value="" onChangeText={onChangeText} onFulfill={onFulfill} />
158
+ );
159
+
160
+ const pinInput = getByTestId('pin-hidden-input');
161
+ fireEvent.changeText(pinInput, '1234');
162
+ fireEvent.changeText(pinInput, '56789');
163
+
164
+ expect(onChangeText).toHaveBeenCalledTimes(1);
165
+ expect(onFulfill).toHaveBeenCalledTimes(1);
166
+ });
153
167
  });
154
168
 
155
169
  describe('getState', () => {