Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency input-otp to ^1.4.0 #251

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 1, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
input-otp (source) ^1.2.5 -> ^1.4.0 age adoption passing confidence

Release Notes

guilhermerodz/input-otp (input-otp)

v1.4.0

I'm sorry to skip 1.3.0 due to an issue I've had while publishing the NPM package.

  • chore(input): stop enforcing only digits regexp by default
    • Before 1.4.0, the input would take REGEXP_ONLY_DIGITS as the default pattern behavior, mistaking mobile users when they couldn't type in or even paste alphanumeric entries.
  • feat(input): add pasteTransformer prop
    • Allows pasting invalid codes and then transforming them into something that the input's regex/pattern would accept. Example: you can now take "XXX-XXX" as pasted input even though you've determined a pattern of 6 numerical digits; just add a prop to your OTPInput: pasteTransformer={pasted => pasted.replaceAll('-','')}.
  • feat(input): add placeholder
    • Input can now render a placeholder, all you should do is adjust your CSS to render it (look at the default example on README)!
    • The input's HTML now lives with an attribute data-input-otp-placeholder-shown when its content is empty.
  • chore(input): remove re-focus feature for password manager badges
    • Fixed a bug where the input's blur event was triggering even if the user hasn't requested it. The sacrifice was to remove the auto re-focus feature for password manager badges, meaning if the password badge ever disappears, then the user himself has to re-trigger focus by manually clicking or selecting the input.

v1.3.0

  • chore(input): stop enforcing only digits regexp by default
    • Before 1.3.0, the input would take REGEXP_ONLY_DIGITS as the default pattern behavior, mistaking mobile users when they couldn't type in or even paste alphanumeric entries.
  • feat(input): add pasteTransformer prop
    • Allows pasting invalid codes and then transforming them into something that the input's regex/pattern would accept. Example: you can now take "XXX-XXX" as pasted input even though you've determined a pattern of 6 numerical digits; just add a prop to your OTPInput: pasteTransformer={pasted => pasted.replaceAll('-','')}.
  • feat(input): add placeholder
    • Input can now render a placeholder, all you should do is adjust your CSS to render it (look at the default example on README)!
    • The input's HTML now lives with an attribute data-input-otp-placeholder-shown when its content is empty.
  • chore(input): remove re-focus feature for password manager badges
    • Fixed a bug where the input's blur event was triggering even if the user hasn't requested it. The sacrifice was to remove the auto re-focus feature for password manager badges, meaning if the password badge ever disappears, then the user himself has to re-trigger focus by manually clicking or selecting the input.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

vercel bot commented Nov 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ui-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 2, 2024 0:31am

@renovate renovate bot merged commit 7be1372 into main Nov 2, 2024
6 checks passed
@renovate renovate bot deleted the renovate/input-otp-1.x branch November 2, 2024 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants