π¦ New version release#18
Merged
Merged
Conversation
31fcca1 to
95a0d0b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@smooai/[email protected]
Minor Changes
6b8a36e: Pre-chat phone field now formats and validates as you type (libphonenumber-js, US default region).
AsYouType('US')β appended digits are formatted live (e.g.(213) 373-4253). The formatter only rewrites when the caret is at the end and never while deleting, so backspacing the formatting characters works naturally.isValidPhoneNumber(value, 'US')β a subtle, themed valid/invalid state on the field plus a small hint span. An empty field stays neutral (the field is optional unlessrequirePhone).requirePhoneis set and the number is invalid, submission is blocked and the hint is shown; when optional, submission proceeds. A valid number is sent as canonical E.164 (parsePhoneNumber(value, 'US').number), falling back to the raw value when it does not parse (the backend re-parses and normalizes/nulls authoritatively β SMOODEV-2153).type="tel",autocomplete="tel", and the implicit<label>are unchanged, and the value is also reformatted/validated onchangeso a browser-autofilled number gets handled too.The standalone IIFE bundle now inlines
libphonenumber-js/min(added todeps.alwaysBundle) so a plain<script>embed has no undefined-global reference at load.