@pie-element/multi-trait-rubric 8.1.2-next.5 → 8.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.
@@ -18,5 +18,6 @@ export default class MultiTraitRubricElement extends HTMLElement {
18
18
  insertImage(handler: any): void;
19
19
  onDeleteImage(src: any, done: any): void;
20
20
  _render(): void;
21
+ connectedCallback(): void;
21
22
  disconnectedCallback(): void;
22
23
  }
@@ -1,7 +1,7 @@
1
1
  import e from "./defaults.js";
2
2
  import { excludeZeroTypes as t } from "./modals.js";
3
3
  import { addOrRemoveScaleColumn as n } from "./utils.js";
4
- import r from "./main.js";
4
+ import { Main as r } from "./main.js";
5
5
  import i from "react";
6
6
  import { createRoot as a } from "react-dom/client";
7
7
  import { DeleteImageEvent as o, DeleteSoundEvent as s, InsertImageEvent as c, InsertSoundEvent as l, ModelUpdatedEvent as u } from "@pie-element/shared-configure-events";
@@ -81,8 +81,11 @@ var d = (t) => ({
81
81
  this._root ||= a(this), this._root.render(e);
82
82
  }
83
83
  }
84
+ connectedCallback() {
85
+ this._render();
86
+ }
84
87
  disconnectedCallback() {
85
- this._root && this._root.unmount();
88
+ this._root &&= (this._root.unmount(), null);
86
89
  }
87
90
  };
88
91
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { ExcludeZeroDialog as e, IncludeZeroDialog as t, InfoDialog as n, excludeZeroTypes as r } from "./modals.js";
2
2
  import { addOrRemoveScaleColumn as i } from "./utils.js";
3
3
  import { MultiTraitButton as a } from "./common.js";
4
- import o from "./scale.js";
4
+ import { Scale as o } from "./scale.js";
5
5
  import s from "react";
6
6
  import c from "prop-types";
7
7
  import { styled as l } from "@mui/material/styles";
@@ -244,4 +244,4 @@ S.propTypes = {
244
244
  })
245
245
  };
246
246
  //#endregion
247
- export { S as default };
247
+ export { S as Main, S as default };
@@ -1,6 +1,6 @@
1
1
  import { DecreaseMaxPoints as e, DeleteScale as t, DeleteTrait as n, InfoDialog as r } from "./modals.js";
2
2
  import { Arrow as i, MultiTraitButton as a } from "./common.js";
3
- import o from "./traitsHeader.js";
3
+ import { TraitsHeaderTile as o } from "./traitsHeader.js";
4
4
  import s from "./trait.js";
5
5
  import c from "react";
6
6
  import l from "prop-types";
@@ -277,4 +277,4 @@ v.propTypes = {
277
277
  labelPluginProps: l.object
278
278
  };
279
279
  //#endregion
280
- export { v as default };
280
+ export { v as Scale, v as default };
@@ -169,4 +169,4 @@ k.propTypes = {
169
169
  })
170
170
  };
171
171
  //#endregion
172
- export { k as default };
172
+ export { k as TraitsHeaderTile, k as default };