playhtml 2.0.9 → 2.0.11

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/README.md CHANGED
@@ -204,7 +204,6 @@ Creates a movable element using 2D `translate` on the element. Dragging the elem
204
204
  **troubleshooting**
205
205
 
206
206
  - This currently doesn't work on `inline` display elements.
207
- - This currently doesn't work on touch screens.
208
207
 
209
208
  ### `can-toggle`
210
209
 
@@ -230,12 +229,6 @@ Creates an element that can be resized using a `scale` `transform`. Clicking the
230
229
 
231
230
  Creates a rotatable element using a `rotate` `transform` on the element. Dragging the element to the left or right will rotate it counter-clockwise and clockwise respectively.
232
231
 
233
- ### `can-post`
234
-
235
- ![image](https://github.com/spencerc99/playhtml/assets/14796580/6de3fcab-2372-4080-b46f-cd768f1ed44e)
236
-
237
- Creates a communal forum from a `form` element. The form will sync any new submissions including all the `input` elements in the form, using their `name` property as the key and their value as the value. New messages will be currently prepended to the element with the `guestbookMessages` ID. TODO: make this generic and take user input
238
-
239
232
  ## Contributing
240
233
 
241
234
  See [CONTRIBUTING.md](https://github.com/spencerc99/playhtml/blob/main/CONTRIBUTING.md).
package/dist/main.d.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  import { ElementAwarenessEventHandlerData } from '@playhtml/common';
4
4
  import { ElementData } from '@playhtml/common';
5
5
  import { ElementEventHandlerData } from '@playhtml/common';
6
+ import { ElementInitializer } from '@playhtml/common';
6
7
  import { ElementSetupData } from '@playhtml/common';
7
8
  import { ModifierKey } from '@playhtml/common';
8
9
  import { TagType } from '@playhtml/common';
@@ -57,9 +58,10 @@ declare class ElementHandler<T = any, U = any, V = any> {
57
58
  declare interface InitOptions {
58
59
  room?: string;
59
60
  host?: string;
61
+ extraCapabilities?: Record<string, ElementInitializer>;
60
62
  }
61
63
 
62
- declare function initPlayHTML({ room: inputRoom, host, }?: InitOptions): YPartyKitProvider | undefined;
64
+ declare function initPlayHTML({ room: inputRoom, host, extraCapabilities, }?: InitOptions): YPartyKitProvider | undefined;
63
65
 
64
66
  export declare const playhtml: PlayHTMLComponents;
65
67
 
@@ -79,6 +81,6 @@ declare function setupPlayElement(element: Element): void;
79
81
  /**
80
82
  * Sets up a playhtml element to handle the given tag's capabilities.
81
83
  */
82
- declare function setupPlayElementForTag<T extends TagType>(element: HTMLElement, tag: T): void;
84
+ declare function setupPlayElementForTag<T extends TagType | string>(element: HTMLElement, tag: T): void;
83
85
 
84
86
  export { }