playhtml 2.10.0 → 2.10.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 +7 -1
- package/dist/playhtml.es.js +2475 -2261
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -181,6 +181,10 @@ export declare interface CursorZoneOptions {
|
|
|
181
181
|
getCursorStyle?: (presence: CursorPresence) => Partial<CSSStyleDeclaration> | Record<string, string>;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
+
declare type DeepReadonlyStore<T> = T extends (...args: any[]) => any ? T : T extends readonly (infer U)[] ? ReadonlyArray<DeepReadonlyStore<U>> : T extends object ? {
|
|
185
|
+
readonly [K in keyof T]: DeepReadonlyStore<T[K]>;
|
|
186
|
+
} : T;
|
|
187
|
+
|
|
184
188
|
declare interface DefaultRoomOptions {
|
|
185
189
|
includeSearch?: boolean;
|
|
186
190
|
}
|
|
@@ -328,7 +332,7 @@ export declare interface PlayHTMLComponents {
|
|
|
328
332
|
removePlayElement: typeof removePlayElement;
|
|
329
333
|
deleteElementData: typeof deleteElementData;
|
|
330
334
|
setupPlayElementForTag: typeof setupPlayElementForTag;
|
|
331
|
-
syncedStore: (typeof store)["play"]
|
|
335
|
+
syncedStore: ReadOnlyStore<(typeof store)["play"]>;
|
|
332
336
|
elementHandlers: Map<string, Map<string, ElementHandler>>;
|
|
333
337
|
eventHandlers: Map<string, Array<RegisteredPlayEvent>>;
|
|
334
338
|
dispatchPlayEvent: typeof dispatchPlayEvent;
|
|
@@ -350,6 +354,8 @@ export declare interface PlayHTMLComponents {
|
|
|
350
354
|
}>;
|
|
351
355
|
}
|
|
352
356
|
|
|
357
|
+
declare type ReadOnlyStore<T extends object> = DeepReadonlyStore<T>;
|
|
358
|
+
|
|
353
359
|
/**
|
|
354
360
|
* Registers the given event listener.
|
|
355
361
|
* Returns a unique ID corresponding to the listener.
|