Add a "verifying" connection state between "connected" and "registered" so collaborators see clear feedback while waiting for the device owner to approve their connection on Desktop. Changes across the stack: - Hub: verify RPC returns isNewDevice flag to distinguish new vs whitelisted - SDK: emit "verifying" state before verify RPC, pass isNewDevice through - Store: capture isNewDevice via onVerified, capture rejection via onError - UI: ConnectionStatus (waiting), RejectedStatus (declined), and verify success overlay (approved) replace the stuck scanner screen Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
@multica/store
Zustand state management for Multica apps.
Usage
// From barrel
import { useHubStore, useMessagesStore, useGatewayStore } from '@multica/store'
// Per-file subpath import
import { useGatewayStore } from '@multica/store/gateway'
import { useHubStore } from '@multica/store/hub'
import { useMessagesStore } from '@multica/store/messages'
import { useHubInit } from '@multica/store/hub-init'
import { useDeviceId } from '@multica/store/device-id'