@dxs-ts/eveli-ide 0.0.105 → 0.0.106

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.
Files changed (2) hide show
  1. package/build/index.js +17 -18
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -49585,7 +49585,7 @@ const gpe = ({ site: e }) => {
49585
49585
  /* @__PURE__ */ c(qe, { onClick: a, disabled: r || !n, children: /* @__PURE__ */ c(le, { id: 'imports.import.action"' }) })
49586
49586
  ] })
49587
49587
  ] });
49588
- }, Up = { tag: "eveli-ide-0.0.105", built: "25/02/2025" }, vpe = (e, t, n) => [
49588
+ }, Up = { tag: "eveli-ide-0.0.106", built: "25/02/2025" }, vpe = (e, t, n) => [
49589
49589
  {
49590
49590
  composer: (i) => /* @__PURE__ */ c(bue, { onClose: i }),
49591
49591
  onView: () => n.handleTabAdd({ id: "articles", label: "Articles" }),
@@ -56999,6 +56999,8 @@ class Ope {
56999
56999
  remove() {
57000
57000
  this._editor.toTextArea();
57001
57001
  }
57002
+ refresh() {
57003
+ }
57002
57004
  getAnnotations(t, n, i, r) {
57003
57005
  if (!this._events.lint)
57004
57006
  return;
@@ -57045,24 +57047,21 @@ const Ipe = (e, t) => new Ope(e, t), Cpe = Rd(Ae)(({ theme: e }) => ({
57045
57047
  lineHeight: "1.5"
57046
57048
  }
57047
57049
  })), Rpe = (e) => {
57048
- const t = te.createRef(), [n, i] = te.useState();
57050
+ const t = te.useRef(null), [n, i] = te.useState();
57051
+ return te.useEffect(() => (i(Ipe(t, e).withEvents(e)), () => {
57052
+ try {
57053
+ n == null || n.remove();
57054
+ } catch {
57055
+ }
57056
+ }), [t.current]), /* @__PURE__ */ c("textarea", { id: e.id, ref: t }, e.id);
57057
+ }, Lu = (e) => {
57058
+ const [t, n] = te.useState(e.id), [i, r] = te.useState(!1);
57049
57059
  return te.useEffect(() => {
57050
- const r = Ipe(t, e).withEvents({
57051
- onChanges: e.onChange,
57052
- lint: e.lint,
57053
- hint: e.hint
57054
- });
57055
- return i(r), () => {
57056
- r.remove();
57057
- };
57058
- }, []), te.useEffect(() => {
57059
- n && n.withEvents({
57060
- onChanges: e.onChange,
57061
- lint: e.lint,
57062
- hint: e.hint
57063
- });
57064
- }, [e, n]), /* @__PURE__ */ c("textarea", { id: e.id, ref: t }, e.id);
57065
- }, Lu = (e) => /* @__PURE__ */ c(Cpe, { children: /* @__PURE__ */ c(Rpe, { ...e }) });
57060
+ e.id !== t && (r(!0), n(e.id));
57061
+ }, [e.id]), te.useEffect(() => {
57062
+ i && r(!1);
57063
+ }, [i]), i ? /* @__PURE__ */ c(Be, {}) : /* @__PURE__ */ c(Cpe, { children: /* @__PURE__ */ c(Rpe, { ...e }) });
57064
+ };
57066
57065
  var OZ = { exports: {} }, zT = { exports: {} }, Z8;
57067
57066
  function Mpe() {
57068
57067
  return Z8 || (Z8 = 1, function(e, t) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxs-ts/eveli-ide",
3
- "version": "0.0.105",
3
+ "version": "0.0.106",
4
4
  "homepage": "https://github.com/digiexpress-io/digiexpress-parent",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",