@gearbox-protocol/ui-kit 4.0.0-next.12 → 4.0.0-next.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/cjs/components/index.cjs +1 -1
  2. package/dist/cjs/components/layout/app-footer/app-footer.cjs +1 -1
  3. package/dist/cjs/components/sync-status-pill/constants.cjs +1 -0
  4. package/dist/cjs/components/sync-status-pill/get-sync-status.cjs +1 -0
  5. package/dist/cjs/components/sync-status-pill/index.cjs +1 -0
  6. package/dist/cjs/components/sync-status-pill/sync-status-pill.cjs +1 -0
  7. package/dist/cjs/index.cjs +1 -1
  8. package/dist/cjs/locale/en.json.cjs +1 -1
  9. package/dist/esm/components/index.js +586 -581
  10. package/dist/esm/components/layout/app-footer/app-footer.js +20 -23
  11. package/dist/esm/components/sync-status-pill/constants.js +10 -0
  12. package/dist/esm/components/sync-status-pill/get-sync-status.js +78 -0
  13. package/dist/esm/components/sync-status-pill/index.js +9 -0
  14. package/dist/esm/components/sync-status-pill/sync-status-pill.js +137 -0
  15. package/dist/esm/index.js +732 -727
  16. package/dist/esm/locale/en.json.js +8 -3
  17. package/dist/globals.css +1 -1
  18. package/dist/types/components/index.d.ts +1 -1
  19. package/dist/types/components/layout/app-footer/app-footer.d.ts +9 -15
  20. package/dist/types/components/sync-status-pill/constants.d.ts +7 -0
  21. package/dist/types/components/sync-status-pill/get-sync-status.d.ts +100 -0
  22. package/dist/types/components/sync-status-pill/index.d.ts +3 -0
  23. package/dist/types/components/sync-status-pill/sync-status-pill.d.ts +42 -0
  24. package/dist/types/index.d.ts +2 -2
  25. package/dist/types/locale/en.json.d.ts +8 -3
  26. package/dist/types/types/footer.d.ts +1 -45
  27. package/package.json +3 -3
  28. package/dist/cjs/components/block-sync-pill/block-sync-pill.cjs +0 -1
  29. package/dist/cjs/components/block-sync-pill/block-sync-status.cjs +0 -1
  30. package/dist/cjs/components/block-sync-pill/index.cjs +0 -1
  31. package/dist/esm/components/block-sync-pill/block-sync-pill.js +0 -211
  32. package/dist/esm/components/block-sync-pill/block-sync-status.js +0 -12
  33. package/dist/esm/components/block-sync-pill/index.js +0 -4
  34. package/dist/types/components/block-sync-pill/block-sync-pill.d.ts +0 -35
  35. package/dist/types/components/block-sync-pill/block-sync-status.d.ts +0 -29
  36. package/dist/types/components/block-sync-pill/index.d.ts +0 -1
@@ -1,29 +0,0 @@
1
- import { BlockByChain } from '../../types/footer';
2
- /**
3
- * Liveness state of the data-refresh loop, derived from per-chain sync info:
4
- * - `loading` — nothing has successfully synced yet (initial state);
5
- * - `synced` — at least one chain synced and none are stale/failing;
6
- * - `error` — a chain reported an error, or the oldest sync is stale.
7
- */
8
- export type BlockSyncState = "loading" | "synced" | "error";
9
- export interface BlockSyncStatus {
10
- state: BlockSyncState;
11
- /** True while any chain has a refresh in flight. */
12
- isSyncing: boolean;
13
- }
14
- export interface GetBlockSyncStatusProps {
15
- blockByChain: BlockByChain | undefined;
16
- /** Reference "now" timestamp (ms) used to evaluate staleness. */
17
- now: number;
18
- /** Age (ms) after which the oldest sync is considered stale. */
19
- staleAfterMs: number;
20
- }
21
- /**
22
- * Pure derivation of the {@link BlockSyncState} from chain sync info.
23
- *
24
- * A chain counts as "synced" only when it has both a real block (`> 0`) and a
25
- * local sync timestamp. Staleness is measured against the **oldest** synced
26
- * chain, so a single lagging chain is enough to flag the whole indicator.
27
- * Errors take priority over everything else.
28
- */
29
- export declare function getBlockSyncStatus({ blockByChain, now, staleAfterMs, }: GetBlockSyncStatusProps): BlockSyncStatus;
@@ -1 +0,0 @@
1
- export * from './block-sync-pill';