inspector-ng 0.0.9 → 0.0.11

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.
@@ -8,6 +8,7 @@ export interface InspectorCheckpointRecord {
8
8
  name: string;
9
9
  route: string;
10
10
  createdAt: string;
11
+ lastUsedAt?: string;
11
12
  state: unknown;
12
13
  }
13
14
  export declare const INSPECTOR_CHECKPOINT_REPOSITORY: InjectionToken<InspectorCheckpointRepository>;
@@ -56,3 +57,5 @@ export declare class InspectorCheckpointService {
56
57
  }
57
58
  export declare function provideInspectorCheckpoints(): EnvironmentProviders;
58
59
  export declare function nextAutomaticName(route: string, names: string[]): string;
60
+ export declare function checkpointActivityAt(checkpoint: InspectorCheckpointRecord): string;
61
+ export declare function recentActivityFirst(a: InspectorCheckpointRecord, b: InspectorCheckpointRecord): number;
@@ -1,10 +1,12 @@
1
1
  import { ElementRef, OnDestroy } from '@angular/core';
2
2
  import { DistanceOverlay, Guide, GuideOrientation, InspectMeasurement, Rect, TextBlockAnnotation, ToolMode } from './types';
3
- import { InspectorCheckpointRecord, InspectorCheckpointService } from './checkpoints';
3
+ import { checkpointActivityAt, InspectorCheckpointRecord, InspectorCheckpointService } from './checkpoints';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class inspectorComponent implements OnDestroy {
6
6
  readonly Math: Math;
7
+ readonly checkpointActivityAt: typeof checkpointActivityAt;
7
8
  readonly formatValue: (value: number) => number;
9
+ readonly formatRelativeTime: (iso: string, now?: number) => string;
8
10
  readonly guideHitboxSize = 14;
9
11
  readonly overlayRoot: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
10
12
  readonly checkpointDialog: import("@angular/core").Signal<ElementRef<HTMLDialogElement> | undefined>;
package/lib/utils.d.ts CHANGED
@@ -1,2 +1,4 @@
1
1
  export declare const createId: () => string;
2
2
  export declare const formatValue: (value: number) => number;
3
+ /** Compact relative time for Raycast-style list subtitles. */
4
+ export declare const formatRelativeTime: (iso: string, now?: number) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inspector-ng",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",