playhtml 2.8.0 → 2.9.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 +14 -0
- package/dist/playhtml.es.js +3096 -2097
- package/package.json +2 -2
package/dist/main.d.ts
CHANGED
|
@@ -11,12 +11,19 @@ import { ElementSetupData } from '../../common/src';
|
|
|
11
11
|
import { EventMessage } from '../../common/src';
|
|
12
12
|
import { MappedTypeDescription } from '@syncedstore/core/types/doc';
|
|
13
13
|
import { ModifierKey } from '../../common/src';
|
|
14
|
+
import { PageDataChannel } from '../../common/src';
|
|
14
15
|
import { PlayerIdentity } from '../../common/src';
|
|
15
16
|
import { PlayerIdentity as PlayerIdentity_2 } from '../../../common/src';
|
|
16
17
|
import { PlayEvent } from '../../common/src';
|
|
18
|
+
import { PresenceAPI } from '../../common/src';
|
|
19
|
+
import { PresenceRoom } from '../../common/src';
|
|
17
20
|
import { RegisteredPlayEvent } from '../../common/src';
|
|
18
21
|
import { TagType } from '../../common/src';
|
|
19
22
|
|
|
23
|
+
declare function createPageData<T>(name: string, defaultValue: T): PageDataChannel<T>;
|
|
24
|
+
|
|
25
|
+
declare function createPresenceRoom(name: string): PresenceRoom;
|
|
26
|
+
|
|
20
27
|
export { Cursor }
|
|
21
28
|
|
|
22
29
|
declare class CursorClientAwareness {
|
|
@@ -43,15 +50,19 @@ declare class CursorClientAwareness {
|
|
|
43
50
|
private zones;
|
|
44
51
|
private currentZone;
|
|
45
52
|
private cursorZoneState;
|
|
53
|
+
private clientIdToStableId;
|
|
54
|
+
private pendingRemovals;
|
|
46
55
|
constructor(provider: default_2, options?: CursorOptions);
|
|
47
56
|
private initialize;
|
|
48
57
|
private setupAwarenessHandling;
|
|
49
58
|
private syncExistingAwareness;
|
|
50
59
|
private handleAwarenessChange;
|
|
60
|
+
private hasOtherClientForStableId;
|
|
51
61
|
private rebuildSpatialGrid;
|
|
52
62
|
private checkProximityOptimized;
|
|
53
63
|
private addCursorStyles;
|
|
54
64
|
private createCursorPositionCallback;
|
|
65
|
+
private resolveTargetCoords;
|
|
55
66
|
private applyZoneStyling;
|
|
56
67
|
private hitTestZones;
|
|
57
68
|
private setupCursorTracking;
|
|
@@ -296,6 +307,9 @@ export declare interface PlayHTMLComponents {
|
|
|
296
307
|
registerPlayEventListener: typeof registerPlayEventListener;
|
|
297
308
|
removePlayEventListener: typeof removePlayEventListener;
|
|
298
309
|
cursorClient: CursorClientAwareness | null;
|
|
310
|
+
presence: PresenceAPI;
|
|
311
|
+
createPageData: typeof createPageData;
|
|
312
|
+
createPresenceRoom: typeof createPresenceRoom;
|
|
299
313
|
roomId: string;
|
|
300
314
|
host: string;
|
|
301
315
|
listSharedElements: () => Array<{
|