0.3.7 • Published 1 year ago

@ubique-innovation/ssi-issuer-elements v0.3.7

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

SSI Issuer Elements

This library provides components that can be used to display a qr code to transfer a proof to the ssimply wallet.

Installation

pnpm install @ubique-innovation/ssi-issuer-elements

Usage

The components can either be included using browser-native web components or with the generated React components. If the components are used in any environment but React, use the native web components. To do so, import the script file for each web component separately.

If you are using React, import the components from @ubique-innovation/ssi-issuer-elements/react.

Setup

Before including any component, be sure to initialize the global configuration:

import { config } from "@ubique-innovation/ssi-issuer-elements";

config.init({ baseUrl: "https://base.url" });

Components

Transfer Proof

Transfer Proof

Usage

// web component
import "@ubique-innovation/ssi-issuer-elements/transfer-proof";

<ssi-transfer-proof token="your-token" credentialType="ACAPY">
  <a href="/">
    <button>Fertig</button>
  </a>
</ssi-transfer-proof>;
// react
import { SsiTransferProof } from "@ubique-innovation/ssi-issuer-elements/react";

<SsiTransferProof token="your-token" credentialType="ACAPY">
  <a href="/">
    <button>Fertig</button>
  </a>
</SsiTransferProof>;

Attributes

nametypedefaultrequireddescription
tokenstringyesthe token that is used to create the invite
credentialType"ACAPY" \| "OID4VCI""ACAPY"NoAn optional credential type.
qrCodeLogoSrcstringssimply LogoNoAn optional logo src (dataURI or path).
belowQrCodeSrcstringssimply LogoNoAn optional below QR-Code logo src (dataURI or path).
hideBelowQrCodeImgbooleanfalseNoAn optional boolean to hide image below QR-Code
issuerSlugstringNoAn optional issuerSlug.
walletNamestring"ssimply"NoAn optional wallet name.

Slot

The children are inserted into the confirmation screen. This slot is intended to show a button that links to some other screen after the proof was transferred successfully.

0.3.6

1 year ago

0.3.5

1 year ago

0.3.7

1 year ago

0.3.2

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.6

1 year ago

0.2.4

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.1.0

2 years ago