playhtml 2.6.0 → 2.7.0

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.
package/dist/main.d.ts CHANGED
@@ -33,6 +33,7 @@ declare class CursorClientAwareness {
33
33
  private visibilityThreshold;
34
34
  private isStylesAdded;
35
35
  private globalApiListeners;
36
+ private activeAnimationCleanups;
36
37
  private allPlayerColors;
37
38
  private chat;
38
39
  private currentMessage;
@@ -48,6 +49,7 @@ declare class CursorClientAwareness {
48
49
  private checkProximityOptimized;
49
50
  private addCursorStyles;
50
51
  private setupCursorTracking;
52
+ private repositionAllCursors;
51
53
  private throttledUpdateCursorAwareness;
52
54
  private updateCursorAwareness;
53
55
  private updateCursor;
@@ -86,6 +88,13 @@ declare class CursorClientAwareness {
86
88
  getCursorPresences(): Map<string, CursorPresenceView>;
87
89
  onCursorPresencesChange(callback: (presences: Map<string, CursorPresenceView>) => void): () => void;
88
90
  private notifyCursorPresenceListeners;
91
+ /**
92
+ * Apply a CSS class to a specific cursor element identified by the player's stableId (publicKey).
93
+ * The class is added to the actual rendered cursor DOM element and removed after `durationMs`.
94
+ * Returns true if the cursor element was found and the animation was applied.
95
+ */
96
+ triggerCursorAnimation(stableId: string, animationClass: string, durationMs?: number): boolean;
97
+ private triggerSelfCursorAnimation;
89
98
  }
90
99
 
91
100
  export declare type CursorCoordinateMode = "relative" | "absolute";