@pie-element/drawing-response 12.1.2-next.4 → 12.1.2-next.6

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.
@@ -1,7 +1,7 @@
1
1
  import e from "./constants.js";
2
2
  import t from "./button.js";
3
3
  import n from "./drawable-palette.js";
4
- import r from "./drawable-main.js";
4
+ import { DrawableMain as r } from "./drawable-main.js";
5
5
  import i from "./drawable-text.js";
6
6
  import a from "./icon.js";
7
7
  import { Component as o } from "react";
@@ -153,7 +153,7 @@ var { tools: f } = e, { translator: p } = d, m = u("div")(({ theme: e }) => ({ m
153
153
  checkIfToolIsDisabled = (e) => {
154
154
  if (this.props.disabled) return !0;
155
155
  let { toolActive: t } = this.state;
156
- return e === "Text" ? !1 : e === t.type;
156
+ return e !== "Text" && e === t.type;
157
157
  };
158
158
  handleColorChange(e, t) {
159
159
  let n = `${e}Color`;
@@ -209,4 +209,4 @@ var { tools: f } = e, { translator: p } = d, m = u("div")(({ theme: e }) => ({ m
209
209
  }
210
210
  };
211
211
  //#endregion
212
- export { y as default };
212
+ export { y as Container, y as default };
@@ -207,4 +207,4 @@ S.propTypes = {
207
207
  language: s.string
208
208
  };
209
209
  //#endregion
210
- export { S as default };
210
+ export { S as DrawableMain, S as default };
@@ -186,4 +186,4 @@ var o = a(r, "Text"), { translator: s } = n, c = () => Math.random().toString(36
186
186
  }
187
187
  };
188
188
  //#endregion
189
- export { l as default };
189
+ export { l as default, c as generateId };
@@ -1,4 +1,4 @@
1
- import e from "./container.js";
1
+ import { Container as e } from "./container.js";
2
2
  import t from "react";
3
3
  import n from "prop-types";
4
4
  import * as r from "@pie-lib/render-ui";
@@ -40,7 +40,7 @@ var s = class extends HTMLElement {
40
40
  }
41
41
  }
42
42
  disconnectedCallback() {
43
- this._root && this._root.unmount();
43
+ this._root &&= (this._root.unmount(), null);
44
44
  }
45
45
  };
46
46
  //#endregion