sitepong 0.2.8 → 0.2.10

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.
@@ -798,15 +798,43 @@ declare class StructuralCapture {
798
798
  private cfg;
799
799
  private sessionId;
800
800
  private running;
801
+ private sentCount;
802
+ private flushing;
803
+ private readonly scrollOffsets;
804
+ private overloadSkip;
805
+ private explicitRoot;
806
+ private appStateSub;
807
+ private readonly teardowns;
801
808
  private now;
802
809
  isRunning(): boolean;
803
810
  getSessionId(): string;
804
811
  start(cfg: StructuralCaptureConfig): void;
812
+ /** Best-effort flush the pre-crash tail before the app tears down. */
813
+ private installCrashFlush;
814
+ /** Flush on background/inactive so timer suspension doesn't strand the tail. */
815
+ private installBackgroundFlush;
816
+ /**
817
+ * Acquire the FiberRoot from the provider's root-View public instance (a ref).
818
+ * Called once on provider mount. This makes capture independent of the React
819
+ * DevTools commit hook, which Release builds strip — without it the fiber walk
820
+ * never runs in production and only the initial viewport message is emitted.
821
+ */
822
+ setRootInstance(instance: unknown): void;
805
823
  private sample;
806
824
  setScreen(name: string): void;
807
825
  /** Resolve a native touch to a node + emit a tap. `target` is the RN
808
826
  * nativeTag from `nativeEvent.target`. */
809
827
  handleTap(target: number, pageX: number, pageY: number): void;
828
+ /** Feed a scroll/drag delta from a touch onto the nearest scrollable ancestor
829
+ * of the touched node. `target` is the RN nativeTag under the finger; `dx`/`dy`
830
+ * are content-offset deltas (px, sign = content motion). Native-driven scroll
831
+ * never reaches the fiber walk, so this is the only way the replay can ride the
832
+ * scroll instead of freezing on a stale frame. */
833
+ handleScroll(target: number, dx: number, dy: number): void;
834
+ /** Public best-effort flush — used by the shared RN error handler to push the
835
+ * pre-crash tail (the in-class ErrorUtils hook covers apps that don't call
836
+ * setupRNErrorHandler; both are idempotent via the `flushing` guard). */
837
+ flushNow(): Promise<void>;
810
838
  private flush;
811
839
  stop(): Promise<void>;
812
840
  }