inspector-ng 0.0.13 → 0.0.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.
@@ -1,4 +1,2 @@
1
- export declare const inspector_STORAGE_KEY = "inspector-state";
2
- export declare const inspector_STATE_VERSION = 2;
3
1
  export declare const GUIDE_SNAP_DISTANCE = 10;
4
2
  export declare const GUIDE_HITBOX_SIZE = 14;
@@ -22,7 +22,6 @@ export declare class inspectorComponent implements OnDestroy {
22
22
  highlightColor: string;
23
23
  guideColor: string;
24
24
  hoverHighlightEnabled: boolean;
25
- persistOnReload: boolean;
26
25
  readonly checkpointService: InspectorCheckpointService | null;
27
26
  readonly commandBarOpen: import("@angular/core").WritableSignal<boolean>;
28
27
  readonly checkpointQuery: import("@angular/core").WritableSignal<string>;
@@ -50,16 +49,11 @@ export declare class inspectorComponent implements OnDestroy {
50
49
  readonly guidePreview: import("@angular/core").WritableSignal<Guide | null>;
51
50
  readonly selectedMetaLine: import("@angular/core").Signal<string>;
52
51
  private readonly isBrowser;
53
- private readonly hydrated;
54
- private readonly history;
55
- private readonly historyIndex;
56
52
  private readonly handleCapturedClick;
57
53
  private draggingGuideId;
58
54
  private selectedElement;
59
55
  private hoverElement;
60
56
  private toastTimer;
61
- readonly canUndo: import("@angular/core").Signal<boolean>;
62
- readonly canRedo: import("@angular/core").Signal<boolean>;
63
57
  constructor(platformId: object);
64
58
  ngOnInit(): void;
65
59
  ngOnDestroy(): void;
@@ -93,6 +87,7 @@ export declare class inspectorComponent implements OnDestroy {
93
87
  formatEdges(edges: InspectMeasurement['padding']): string;
94
88
  formatGap(selected: InspectMeasurement): string;
95
89
  handleKeydown(event: KeyboardEvent): void;
90
+ private hasInspectorCanvasState;
96
91
  private clearInspectorCanvas;
97
92
  private normalizeCheckpointLabel;
98
93
  handlePointerMove(event: PointerEvent): void;
@@ -112,12 +107,8 @@ export declare class inspectorComponent implements OnDestroy {
112
107
  private getGuidePreview;
113
108
  private snapGuide;
114
109
  private findGuideAtPoint;
115
- private undo;
116
- private redo;
117
- private recordHistory;
118
- private cloneGuides;
119
110
  private findMinimumCommonParent;
120
111
  static ɵfac: i0.ɵɵFactoryDeclaration<inspectorComponent, never>;
121
- static ɵcmp: i0.ɵɵComponentDeclaration<inspectorComponent, "inspector-overlay", never, { "highlightColor": { "alias": "highlightColor"; "required": false; }; "guideColor": { "alias": "guideColor"; "required": false; }; "hoverHighlightEnabled": { "alias": "hoverHighlightEnabled"; "required": false; }; "persistOnReload": { "alias": "persistOnReload"; "required": false; }; }, {}, never, never, true, never>;
112
+ static ɵcmp: i0.ɵɵComponentDeclaration<inspectorComponent, "inspector-overlay", never, { "highlightColor": { "alias": "highlightColor"; "required": false; }; "guideColor": { "alias": "guideColor"; "required": false; }; "hoverHighlightEnabled": { "alias": "hoverHighlightEnabled"; "required": false; }; }, {}, never, never, true, never>;
122
113
  }
123
114
  export {};
package/lib/types.d.ts CHANGED
@@ -78,14 +78,3 @@ export type DistanceOverlay = {
78
78
  y2: number;
79
79
  }>;
80
80
  };
81
- export type inspectorPersistedState = {
82
- version: 2;
83
- enabled: boolean;
84
- toolMode: ToolMode;
85
- guideOrientation: GuideOrientation;
86
- guides: Guide[];
87
- showTypography: boolean;
88
- };
89
- export type inspectorLegacyPersistedState = Omit<inspectorPersistedState, "version"> & {
90
- version: 1;
91
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inspector-ng",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",