Package-level declarations

Types

Link copied to clipboard
@Singleton
class IdentityProvenanceStore @Inject constructor(context: Context)

Records HOW this install's identity came to be, and this identity's restore-prompt state.

Link copied to clipboard
data class SigilPanelColors(val pillBackground: Color, val pillBorder: Color, val onPill: Color, val onPillDim: Color, val avatarPlaceholderBg: Color, val sheetBackground: Color, val onSheet: Color, val onSheetDim: Color, val onSheetSubtle: Color, val scrim: Color, val accent: Color, val error: Color, val button: Color, val onButton: Color)

Visual tokens for SigilStatusPanel. Matches the geometry of com.midnight.kuira.dapp.wallet.WalletPanelColors so the two pills in com.midnight.kuira.dapp.PanelBar read as a pair.

Link copied to clipboard
class SigilPanelViewModel @Inject constructor(sigilSession: SigilSession, sigilStateStore: SigilStateStore, identityProvenance: IdentityProvenanceStore, blockStoreStorage: BlockStoreBackupStorage, biometricGate: BiometricGate, sdkProvider: MidnightSdkProvider, appDataProvider: Optional<AppDataBackupProvider>) : ViewModel

Self-contained sigil-identity bookkeeper for SigilStatusPanel.

Link copied to clipboard

Functions

Link copied to clipboard
fun SigilStatusPanel(modifier: Modifier = Modifier, colors: SigilPanelColors = SigilPanelColors.Default, viewModel: SigilPanelViewModel = hiltViewModel(), onStatusChange: (SigilStatus) -> Unit = {}, onOpenSettings: () -> Unit = {}, openSheetSignal: Int = 0, pill: @Composable (SigilChipUi, onTap: () -> Unit, onSettings: () -> Unit, onSignOut: () -> Unit) -> Unit? = null)

Drop-in sigil identity pill for example apps. Mirrors com.midnight.kuira.dapp.wallet.WalletStatusPanel's shape and lives next to it in com.midnight.kuira.dapp.PanelBar: