Skip to content

Releases: burnt-labs/xion.js

@burnt-labs/[email protected]

05 Feb 23:21
b2fae19
Compare
Choose a tag to compare
Pre-release

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]

05 Feb 23:21
b2fae19
Compare
Choose a tag to compare
Pre-release

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]

05 Feb 23:21
b2fae19
Compare
Choose a tag to compare
Pre-release

Patch Changes

@burnt-labs/[email protected]

05 Feb 21:35
7e49955
Compare
Choose a tag to compare
Pre-release

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 to import "@burnt-labs/abstraxion/dist/index.css" going forward.

Patch Changes

@burnt-labs/[email protected]

30 Jan 23:07
e7a8b2b
Compare
Choose a tag to compare
Pre-release

Minor Changes

@burnt-labs/[email protected]

23 Jan 00:32
9b7108b
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • #53 2257a1f Thanks @justinbarry! - Add getAccount method in GranteeSignerClient to parse abstractaccount.v1.AbstractAccount type accounts

@burnt-labs/[email protected]

23 Jan 00:32
9b7108b
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • #53 2257a1f Thanks @justinbarry! - Add getAccount method in GranteeSignerClient to parse abstractaccount.v1.AbstractAccount type accounts

Patch Changes

@burnt-labs/[email protected]

18 Jan 21:20
047151f
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • #42 6a6fdd2 Thanks @BurntVal! - remove unnecessary packages from abstraxion and optimize modal backdrop

@burnt-labs/[email protected]

18 Jan 21:20
047151f
Compare
Choose a tag to compare
Pre-release

Minor Changes

Patch Changes

@burnt-labs/[email protected]

17 Jan 05:29
e3518f2
Compare
Choose a tag to compare
Pre-release

Patch Changes