playhtml 2.4.0 → 2.4.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 +12 -2
- package/dist/playhtml.es.js +1650 -1724
- package/package.json +2 -3
package/dist/main.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Cursor } from '../../common/src';
|
|
2
|
+
import { CursorPresence } from '../../common/src';
|
|
1
3
|
import { default as default_2 } from 'y-partykit/provider';
|
|
2
4
|
import { ElementAwarenessEventHandlerData } from '../../common/src';
|
|
3
5
|
import { ElementData } from '../../common/src';
|
|
@@ -7,11 +9,14 @@ import { ElementSetupData } from '../../common/src';
|
|
|
7
9
|
import { EventMessage } from '../../common/src';
|
|
8
10
|
import { MappedTypeDescription } from '@syncedstore/core/types/doc';
|
|
9
11
|
import { ModifierKey } from '../../common/src';
|
|
12
|
+
import { PlayerIdentity } from '../../common/src';
|
|
10
13
|
import { PlayEvent } from '../../common/src';
|
|
11
14
|
import { RegisteredPlayEvent } from '../../common/src';
|
|
12
15
|
import { TagType } from '../../common/src';
|
|
13
16
|
import * as Y from 'yjs';
|
|
14
17
|
|
|
18
|
+
export { Cursor }
|
|
19
|
+
|
|
15
20
|
declare class CursorClientAwareness {
|
|
16
21
|
private provider;
|
|
17
22
|
private options;
|
|
@@ -46,6 +51,7 @@ declare class CursorClientAwareness {
|
|
|
46
51
|
private getTouchCursorSVG;
|
|
47
52
|
private getCustomCursorSVG;
|
|
48
53
|
private removeCursor;
|
|
54
|
+
private savePlayerIdentityToStorage;
|
|
49
55
|
private setupGlobalAPI;
|
|
50
56
|
private emitGlobalEvent;
|
|
51
57
|
private updateGlobalColors;
|
|
@@ -90,6 +96,8 @@ export declare interface CursorOptions {
|
|
|
90
96
|
enableChat?: boolean;
|
|
91
97
|
}
|
|
92
98
|
|
|
99
|
+
export { CursorPresence }
|
|
100
|
+
|
|
93
101
|
declare function dispatchPlayEvent(message: EventMessage): void;
|
|
94
102
|
|
|
95
103
|
declare class ElementHandler<T = any, U = any, V = any> {
|
|
@@ -209,6 +217,8 @@ export declare interface InitOptions<T = any> {
|
|
|
209
217
|
|
|
210
218
|
declare function initPlayHTML({ host, extraCapabilities, events, defaultRoomOptions, room: inputRoom, onError, developmentMode, cursors, }?: InitOptions): Promise<default_2 | undefined>;
|
|
211
219
|
|
|
220
|
+
export { PlayerIdentity }
|
|
221
|
+
|
|
212
222
|
export declare const playhtml: PlayHTMLComponents;
|
|
213
223
|
|
|
214
224
|
declare interface PlayHTMLComponents {
|
|
@@ -263,6 +273,8 @@ declare type StoreShape = {
|
|
|
263
273
|
play: Record<string, Record<string, any>>;
|
|
264
274
|
};
|
|
265
275
|
|
|
276
|
+
export { TagType }
|
|
277
|
+
|
|
266
278
|
export { }
|
|
267
279
|
|
|
268
280
|
|
|
@@ -273,8 +285,6 @@ declare global {
|
|
|
273
285
|
name: string;
|
|
274
286
|
allColors: string[];
|
|
275
287
|
count: number;
|
|
276
|
-
setColor?: (color: string) => void;
|
|
277
|
-
setName?: (name: string) => void;
|
|
278
288
|
on: CursorEventEmitter["on"];
|
|
279
289
|
off: CursorEventEmitter["off"];
|
|
280
290
|
};
|