playhtml 2.5.0 → 2.5.1

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
@@ -98,10 +98,19 @@ export declare interface CursorOptions {
98
98
  onProximityLeft?: (connectionId: string) => void;
99
99
  onCustomCursorRender?: (connectionId: string, element: HTMLElement) => HTMLElement | null;
100
100
  enableChat?: boolean;
101
+ room?: CursorRoom;
102
+ shouldRenderCursor?: (presence: CursorPresence) => boolean;
103
+ getCursorStyle?: (presence: CursorPresence) => Partial<CSSStyleDeclaration> | Record<string, string>;
101
104
  }
102
105
 
103
106
  export { CursorPresence }
104
107
 
108
+ export declare type CursorRoom = "page" | "domain" | "section" | ((context: {
109
+ domain: string;
110
+ pathname: string;
111
+ search: string;
112
+ }) => string);
113
+
105
114
  declare interface DefaultRoomOptions {
106
115
  includeSearch?: boolean;
107
116
  }