easter-egg-quest 1.0.18 → 1.0.19

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.
@@ -18,9 +18,11 @@ export declare class InputTracker {
18
18
  private _prevY;
19
19
  private _prevMoveTs;
20
20
  /** How long without movement before we consider user "still". */
21
- private readonly STILL_THRESHOLD_MS;
21
+ private readonly DEFAULT_STILL_THRESHOLD_MS;
22
+ private _stillThresholdMs;
22
23
  /** Minimum phase duration to record (ignore micro-jitter). */
23
- private readonly MIN_PHASE_MS;
24
+ private readonly DEFAULT_MIN_PHASE_MS;
25
+ private _minPhaseMs;
24
26
  /** Timer for detecting stillness transitions. */
25
27
  private _stillTimer;
26
28
  /** Bound handlers (for clean removal). */
@@ -39,6 +41,11 @@ export declare class InputTracker {
39
41
  /** Reset phase history (e.g., between stages). */
40
42
  resetPhases(): void;
41
43
  resetCounts(): void;
44
+ configurePhaseDetection(opts: {
45
+ stillThresholdMs?: number;
46
+ minPhaseMs?: number;
47
+ }): void;
48
+ resetPhaseDetection(): void;
42
49
  /** Page hidden/visible — reset stillness so off-tab time doesn't count. */
43
50
  private _onVisibilityChange;
44
51
  /** Window blur (alt-tab, click outside) — same reset. */
@@ -13,8 +13,10 @@ export declare class NarrativeRenderer {
13
13
  private container;
14
14
  private currentLine;
15
15
  private clearTimer;
16
+ private awaitingConfirm;
16
17
  constructor(config: ResolvedConfig);
17
18
  mount(): void;
19
+ private _removeCurrentLine;
18
20
  /** Show a single narrative line. Fades in, replaces any previous line. */
19
21
  showLine(text: string, className?: string): void;
20
22
  /**
@@ -27,7 +29,7 @@ export declare class NarrativeRenderer {
27
29
  /** Show a celebratory line with golden styling. */
28
30
  showCelebration(text: string): void;
29
31
  /** Clear current narrative text. */
30
- clear(): void;
32
+ clear(force?: boolean): void;
31
33
  /** Remove all DOM. */
32
34
  destroy(): void;
33
35
  private _getStyles;
@@ -14,6 +14,7 @@ export declare class PageBreather {
14
14
  private _targetIntensity;
15
15
  private _rafId;
16
16
  private _overlay;
17
+ private _label;
17
18
  private _startTime;
18
19
  private _isUserMoving;
19
20
  private _inSync;
@@ -25,6 +25,7 @@ export declare class RhythmStage implements StageHandler {
25
25
  private _totalCycles;
26
26
  private _lastPhaseCount;
27
27
  private _bestAccuracy;
28
+ private _lastGuideTime;
28
29
  /** Ideal move duration range (ms). */
29
30
  private readonly IDEAL_MOVE_MIN;
30
31
  private readonly IDEAL_MOVE_MAX;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easter-egg-quest",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "A hidden Easter-themed narrative mini-game overlay for any website",
5
5
  "main": "dist/easter-egg-quest.umd.js",
6
6
  "module": "dist/easter-egg-quest.es.js",