Releases: burnt-labs/xion.js
Releases · burnt-labs/xion.js
@burnt-labs/[email protected]
Patch Changes
- #67
4a281fc
Thanks @justinbarry! - Remove exports from package.json in signers and constants package. Additionally, adjust build setting to output more predicable build output.
@burnt-labs/[email protected]
Patch Changes
- #67
4a281fc
Thanks @justinbarry! - Remove exports from package.json in signers and constants package. Additionally, adjust build setting to output more predicable build output.
@burnt-labs/[email protected]
Patch Changes
- Updated dependencies [
4a281fc
]:- @burnt-labs/[email protected]
- @burnt-labs/[email protected]
@burnt-labs/[email protected]
New Features
To accommodate some mobile environments we are now redirecting the user to the burnt dashboard instead of popping open a new tab. The library will automatically add the current url as a return URL to let the dashboard know where to return the user after the grant is successful.
Breaking Changes!!!!
New modal open/close behavior handling
Previously Abstraxion relied on consuming apps to determine the display logic. Meaning they most likely had to create some hook like
const [showAbstraxion, setShowAbstraxion] = useState(false) and toggle it out on a button click. Abstraxion now exports a hook called "useModal" which takes care of this logic and similarly returns a getter/setter for you to perform the same actions.
// Previous
const [showAbstraxion, setShowAbstraxion] = useState(false);
...
<Abstraxion
isOpen={isOpen}
onClose={() => {
setIsOpen(false);
}}
/>
// Now
import {useModal} from "@burnt-labs/abstraxion;
...
const [showAbstraxion, setShowAbstraxion] = useModal();
...
<Button
onClick={() => {
setShowAbstraxion(true);
}}
>
"CONNECT"
</Button>
...
<Abstraxion
onClose={() => {
setShowAbstraxion(false);
}}
/>
CSS import paths have changed!
//Previous
import "@burnt-labs/ui/styles.css";
import "@burnt-labs/abstraxion/styles.css";
// Now
import "@burnt-labs/ui/dist/index.css";
import "@burnt-labs/abstraxion/dist/index.css";
Major Changes
- #57
5e0d06f
Thanks @BurntNerve! - Moved display logic to internal "useModal" hook. Consumers will need to change their strategy from a custom piece of state within their app to utilizing this new hook. The login flow will now be a single tab experience.
Minor Changes
- #65
39fabfe
Thanks @justinbarry! - Now longer use a blanket export in package.json as it was causing some confusion for some bundlers. There is no longer a css alias for "@burnt-labs/abstraxion/style.css", dapps will need toimport "@burnt-labs/abstraxion/dist/index.css"
going forward.
Patch Changes
- Updated dependencies [
5e0d06f
,39fabfe
]:- @burnt-labs/[email protected]
@burnt-labs/[email protected]
Minor Changes
- #61
105279a
Thanks @justinbarry! - Fix vite issue with graz package deep imports
@burnt-labs/[email protected]
Minor Changes
- #53
2257a1f
Thanks @justinbarry! - Add getAccount method in GranteeSignerClient to parse abstractaccount.v1.AbstractAccount type accounts
@burnt-labs/[email protected]
Minor Changes
- #53
2257a1f
Thanks @justinbarry! - Add getAccount method in GranteeSignerClient to parse abstractaccount.v1.AbstractAccount type accounts
Patch Changes
- Updated dependencies [
2257a1f
]:- @burnt-labs/[email protected]