Miscellaneous:
- Add
onclick
handler to QR element to copy the request data as JSON to the clipboard.
Bug fixes:
- Append the
share-kit-from
query parameter withinrenderRequestButton
andrenderRequestQRCode
so it's appended when updating the request element.
Bug fixes:
- Replace
append-query
dependency with internal function- Fixes
npm audit
warning
- Fixes
Improvements
- Update the
verify
button's text to "Verify with Bloom" instead of "Verify with BloomID"
New Features:
- Button variations are now available!
- This includes three sizes: small, medium, and large
- Large is what was being rendered before
- And style/content variations for each size
- Small: square, rounded square, circle, squircle
- Small buttons can also have their foreground and background colors switched with the
inverted
field
- Small buttons can also have their foreground and background colors switched with the
- Medium: log in, sign up, connect, bloom, and verify
- Large: log in, sign up, connect, bloom, and verify
- Small: square, rounded square, circle, squircle
- This includes three sizes: small, medium, and large
Improvements
- Use tsdx to build
Breaking
- This package no longer provides validation utils, instead use verify-kit
- Remove
buttonCallbackUrl
in favor ofbuttonOptions
- This will be expanded to include options for button type (signin/signup/verify/etc.) among other things
Improvements
- Improve how padding is calculated and displayed
Breaking
- Render "Verify with Bloom" button for clients on Android devices
Improvements:
- Bump to [email protected]
- This removed
New Features:
renderRequestElement
: Renderer that dynamically renders a "Tap To Share" button or QR code based on the client's user agent.- On mobile it will render a button that opens the Bloom app
- On desktop it will render a QR code that the user will scan with the Bloom app
Breaking:
-
This release removes all depecreated functions and the react dependency. There will be a
share-kit-react
library coming soon! -
generateRequestQRCOde
,manageRequestQRCode
, andRequestQRCode
are removed- Replacements:
generateRequestQRCOde
=>renderRequestElement
manageRequestQRCode
=>renderRequestElement
RequestQRCode
=>RequestElement
(from share-kit-react coming soon!!)
- Replacements:
Improvements:
- Improve "eye" rendering
Improvements:
- Fix default width calculation of logo image
New Features:
- Implement a QR code with circles and rounded "eyes" instead of squares
- Add
generateRequestQRCode
- This takes a
canvas
element as well as the request data and options for the QR code.
- This takes a
Improvements:
- Change the default EC level of the QR code to
L
- Change image URLs in README so they show up on npm
- Make it so the logo doesn't half-cover any data bits
- Change the logo background from a rounded rectangle to a regular rectangle
Deprecations:
createRequestQRCode
,updateRequestQRCode
, andremoveRequestQRCode
- If using React use
RequestQRCode
, otherwise usegenerateRequestQRCode
- If using React use
Bug fixes:
- Fix npm package
- Use package.json#files to include only the files we need in the package
Bug fixes:
- Fix npm package including the
.git
directory- Now using
yarn publish
with yarn 1.12.1 since it supports 2fa
- Now using
Bug fixes:
- Fix rendering issue in Firefox
BREAKING:
- Removed the
renderAs
prop, the QR will always render with canvas now
New Features:
- Add a image overlay to the QR code, can be turned off with the
hideLogo
prop
Bug fixes:
- Fix types
New Features:
- Add verification utils
- Initial release