@pie-element/drawing-response 12.1.2-next.5 → 12.1.2-next.7

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.
@@ -180,4 +180,4 @@ g.propTypes = {
180
180
  insertImage: n.func
181
181
  };
182
182
  //#endregion
183
- export { g as default };
183
+ export { g as ImageContainer, g as default };
@@ -33,5 +33,6 @@ export default class DrawableResponseConfigure extends HTMLElement {
33
33
  insertSound(handler: any): void;
34
34
  onDeleteSound(src: any, done: any): void;
35
35
  _render(): void;
36
+ connectedCallback(): void;
36
37
  disconnectedCallback(): void;
37
38
  }
@@ -1,4 +1,4 @@
1
- import e from "./root.js";
1
+ import { Root as e } from "./root.js";
2
2
  import t from "./defaults.js";
3
3
  import n from "react";
4
4
  import { createRoot as r } from "react-dom/client";
@@ -71,8 +71,11 @@ var u = i("hotspot:configure"), d = class i extends HTMLElement {
71
71
  });
72
72
  this._root ||= r(this), this._root.render(t);
73
73
  }
74
+ connectedCallback() {
75
+ this._render();
76
+ }
74
77
  disconnectedCallback() {
75
- this._root && this._root.unmount();
78
+ this._root &&= (this._root.unmount(), null);
76
79
  }
77
80
  };
78
81
  //#endregion
@@ -1,4 +1,4 @@
1
- import e from "./image-container.js";
1
+ import { ImageContainer as e } from "./image-container.js";
2
2
  import t from "react";
3
3
  import { cloneDeep as n } from "@pie-element/shared-lodash";
4
4
  import r from "prop-types";
@@ -139,4 +139,4 @@ _.propTypes = {
139
139
  onConfigurationChanged: r.func.isRequired
140
140
  };
141
141
  //#endregion
142
- export { _ as default };
142
+ export { _ as Root, _ as default };