@dropins/tools 1.5.0-alpha1 → 1.5.0-alpha2

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/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@dropins/tools", "version": "1.5.0-alpha1", "license": "SEE LICENSE IN LICENSE.md"}
1
+ {"name": "@dropins/tools", "version": "1.5.0-alpha2", "license": "SEE LICENSE IN LICENSE.md"}
@@ -24,10 +24,15 @@ export declare class Render {
24
24
  * @returns A function to render the component to a root element.
25
25
  */
26
26
  render<T>(Component: Container<T>, props: T): (rootElement: HTMLElement) => Promise<RenderAPI>;
27
+ /**
28
+ * Unmounts a container from a root element.
29
+ * @param rootElement - The root element to unmount the container from.
30
+ */
31
+ static unmount(rootElement: HTMLElement): void;
27
32
  /**
28
33
  * UnRenders a component from a root element.
29
34
  * @param rootElement - The root element to unmount the component from.
30
- * @deprecated Use `remove` method from the returned object of the `mount` method instead.
35
+ * @deprecated Use `remove` method from the returned object of the `mount` method instead or `unmount` method from the `Render` class.
31
36
  */
32
37
  unmount(rootElement: HTMLElement): void;
33
38
  /**