@layers-app/editor 0.0.5 → 0.0.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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as f, Fragment as L } from "react/jsx-runtime";
2
2
  import { useRef as w, useState as E, useCallback as _, useEffect as j, Suspense as M } from "react";
3
- import { u as U, a as z, b as O, w as k, R as F, C as B, $ as W, F as D, N as q, c as G, K as h, d as H, k as J, e as Q, D as V, r as X, t as Y, L as Z, f as K, h as ee, g as te, i as ne, j as ae, B as le } from "./DSD.CVHG1cwA.js";
4
- import { d as oe, P as ie } from "./DSD.bbYNR0Ry.js";
3
+ import { u as U, a as z, b as O, w as k, R as F, C as B, $ as W, F as D, N as q, c as G, K as h, d as H, k as J, e as Q, D as V, r as X, t as Y, L as Z, f as K, h as ee, g as te, i as ne, j as ae, B as le } from "./DSD.D1n6xzHf.js";
4
+ import { d as oe, P as ie } from "./DSD.CJoXhyPN.js";
5
5
  import { TextInput as re } from "@mantine/core";
6
6
  function se({
7
7
  label: n,
@@ -272,9 +272,9 @@ function Ie({
272
272
  /* @__PURE__ */ e(
273
273
  ee,
274
274
  {
275
- contentEditable: /* @__PURE__ */ e(te, { className: "InlineImageNode__contentEditable" }),
275
+ contentEditable: /* @__PURE__ */ e(ne, { className: "InlineImageNode__contentEditable" }),
276
276
  placeholder: /* @__PURE__ */ e(ie, { className: "InlineImageNode__placeholder", children: "Enter a caption..." }),
277
- ErrorBoundary: ne
277
+ ErrorBoundary: te
278
278
  }
279
279
  )
280
280
  ] }) })
@@ -1,6 +1,6 @@
1
1
  import { jsx as o, jsxs as C } from "react/jsx-runtime";
2
2
  import { useMemo as I, useState as D, useRef as S, useCallback as $, useEffect as R } from "react";
3
- import { b as V, a as j, w as P, R as x, C as k, l as b, N as E, k as w, K as v, e as B, r as y, B as A, m as T, n as W } from "./DSD.CVHG1cwA.js";
3
+ import { b as V, a as j, w as P, R as x, C as k, l as b, N as E, k as w, K as v, e as B, r as y, B as A, m as T, n as W } from "./DSD.D1n6xzHf.js";
4
4
  function O(...t) {
5
5
  return t.filter(Boolean).join(" ");
6
6
  }
@@ -14,7 +14,7 @@ function L({
14
14
  totalVotes: a,
15
15
  withPollNode: p
16
16
  }) {
17
- const { clientID: r } = T(), _ = S(null), m = t.votes, f = m.indexOf(r) !== -1, i = m.length, h = t.text;
17
+ const { clientID: r } = W(), _ = S(null), m = t.votes, f = m.indexOf(r) !== -1, i = m.length, h = t.text;
18
18
  return /* @__PURE__ */ C("div", { className: "PollNode__optionContainer", children: [
19
19
  /* @__PURE__ */ o(
20
20
  "div",
@@ -136,7 +136,7 @@ function z({
136
136
  );
137
137
  }, u = () => {
138
138
  d((e) => {
139
- e.addOption(W());
139
+ e.addOption(T());
140
140
  });
141
141
  }, N = P(g) && r;
142
142
  return /* @__PURE__ */ o(
package/dist/index.d.ts CHANGED
@@ -122,6 +122,13 @@ declare global {
122
122
  }
123
123
 
124
124
 
125
+ declare global {
126
+ interface Window {
127
+ editorAppVersion: string;
128
+ }
129
+ }
130
+
131
+
125
132
  declare global {
126
133
  interface DragEvent {
127
134
  rangeOffset?: number;