@topol.io/editor-react 0.0.1 → 0.0.2
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,5 +1,5 @@
|
|
|
1
1
|
import Oe, { useEffect as cr } from "react";
|
|
2
|
-
var Z = { exports: {} },
|
|
2
|
+
var Z = { exports: {} }, F = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.development.js
|
|
@@ -12,7 +12,7 @@ var Z = { exports: {} }, D = {};
|
|
|
12
12
|
var Te;
|
|
13
13
|
function fr() {
|
|
14
14
|
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
15
|
-
var n = Oe, u = Symbol.for("react.element"), g = Symbol.for("react.portal"),
|
|
15
|
+
var n = Oe, u = Symbol.for("react.element"), g = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), T = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), Q = Symbol.iterator, ke = "@@iterator";
|
|
16
16
|
function xe(e) {
|
|
17
17
|
if (e === null || typeof e != "object")
|
|
18
18
|
return null;
|
|
@@ -31,16 +31,16 @@ function fr() {
|
|
|
31
31
|
{
|
|
32
32
|
var o = O.ReactDebugCurrentFrame, s = o.getStackAddendum();
|
|
33
33
|
s !== "" && (r += "%s", t = t.concat([s]));
|
|
34
|
-
var c = t.map(function(
|
|
35
|
-
return String(
|
|
34
|
+
var c = t.map(function(l) {
|
|
35
|
+
return String(l);
|
|
36
36
|
});
|
|
37
37
|
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
var Ae = !1,
|
|
40
|
+
var Ae = !1, De = !1, Fe = !1, Ie = !1, Be = !1, ee;
|
|
41
41
|
ee = Symbol.for("react.module.reference");
|
|
42
|
-
function
|
|
43
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
42
|
+
function Me(e) {
|
|
43
|
+
return !!(typeof e == "string" || typeof e == "function" || e === i || e === E || Be || e === f || e === C || e === b || Ie || e === B || Ae || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === R || e.$$typeof === j || e.$$typeof === T || e.$$typeof === h || // This needs to include all possible module reference object
|
|
44
44
|
// types supported by any Flight configuration anywhere since
|
|
45
45
|
// we don't know which Flight build this will end up being used
|
|
46
46
|
// with.
|
|
@@ -64,7 +64,7 @@ function fr() {
|
|
|
64
64
|
if (typeof e == "string")
|
|
65
65
|
return e;
|
|
66
66
|
switch (e) {
|
|
67
|
-
case
|
|
67
|
+
case i:
|
|
68
68
|
return "Fragment";
|
|
69
69
|
case g:
|
|
70
70
|
return "Portal";
|
|
@@ -91,9 +91,9 @@ function fr() {
|
|
|
91
91
|
var o = e.displayName || null;
|
|
92
92
|
return o !== null ? o : w(e.type) || "Memo";
|
|
93
93
|
case P: {
|
|
94
|
-
var s = e, c = s._payload,
|
|
94
|
+
var s = e, c = s._payload, l = s._init;
|
|
95
95
|
try {
|
|
96
|
-
return w(
|
|
96
|
+
return w(l(c));
|
|
97
97
|
} catch {
|
|
98
98
|
return null;
|
|
99
99
|
}
|
|
@@ -101,14 +101,14 @@ function fr() {
|
|
|
101
101
|
}
|
|
102
102
|
return null;
|
|
103
103
|
}
|
|
104
|
-
var S = Object.assign, A = 0, te, ne, oe, ae, ie,
|
|
104
|
+
var S = Object.assign, A = 0, te, ne, oe, ae, ie, le, ue;
|
|
105
105
|
function se() {
|
|
106
106
|
}
|
|
107
107
|
se.__reactDisabledLog = !0;
|
|
108
108
|
function $e() {
|
|
109
109
|
{
|
|
110
110
|
if (A === 0) {
|
|
111
|
-
te = console.log, ne = console.info, oe = console.warn, ae = console.error, ie = console.group,
|
|
111
|
+
te = console.log, ne = console.info, oe = console.warn, ae = console.error, ie = console.group, le = console.groupCollapsed, ue = console.groupEnd;
|
|
112
112
|
var e = {
|
|
113
113
|
configurable: !0,
|
|
114
114
|
enumerable: !0,
|
|
@@ -153,10 +153,10 @@ function fr() {
|
|
|
153
153
|
value: ie
|
|
154
154
|
}),
|
|
155
155
|
groupCollapsed: S({}, e, {
|
|
156
|
-
value:
|
|
156
|
+
value: le
|
|
157
157
|
}),
|
|
158
158
|
groupEnd: S({}, e, {
|
|
159
|
-
value:
|
|
159
|
+
value: ue
|
|
160
160
|
})
|
|
161
161
|
});
|
|
162
162
|
}
|
|
@@ -164,7 +164,7 @@ function fr() {
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
var N = O.ReactCurrentDispatcher, U;
|
|
167
|
-
function
|
|
167
|
+
function M(e, r, t) {
|
|
168
168
|
{
|
|
169
169
|
if (U === void 0)
|
|
170
170
|
try {
|
|
@@ -198,27 +198,27 @@ function fr() {
|
|
|
198
198
|
c = N.current, N.current = null, $e();
|
|
199
199
|
try {
|
|
200
200
|
if (r) {
|
|
201
|
-
var
|
|
201
|
+
var l = function() {
|
|
202
202
|
throw Error();
|
|
203
203
|
};
|
|
204
|
-
if (Object.defineProperty(
|
|
204
|
+
if (Object.defineProperty(l.prototype, "props", {
|
|
205
205
|
set: function() {
|
|
206
206
|
throw Error();
|
|
207
207
|
}
|
|
208
208
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
209
209
|
try {
|
|
210
|
-
Reflect.construct(
|
|
210
|
+
Reflect.construct(l, []);
|
|
211
211
|
} catch (_) {
|
|
212
212
|
o = _;
|
|
213
213
|
}
|
|
214
|
-
Reflect.construct(e, [],
|
|
214
|
+
Reflect.construct(e, [], l);
|
|
215
215
|
} else {
|
|
216
216
|
try {
|
|
217
|
-
|
|
217
|
+
l.call();
|
|
218
218
|
} catch (_) {
|
|
219
219
|
o = _;
|
|
220
220
|
}
|
|
221
|
-
e.call(
|
|
221
|
+
e.call(l.prototype);
|
|
222
222
|
}
|
|
223
223
|
} else {
|
|
224
224
|
try {
|
|
@@ -250,7 +250,7 @@ function fr() {
|
|
|
250
250
|
} finally {
|
|
251
251
|
V = !1, N.current = c, We(), Error.prepareStackTrace = s;
|
|
252
252
|
}
|
|
253
|
-
var x = e ? e.displayName || e.name : "", _e = x ?
|
|
253
|
+
var x = e ? e.displayName || e.name : "", _e = x ? M(x) : "";
|
|
254
254
|
return typeof e == "function" && L.set(e, _e), _e;
|
|
255
255
|
}
|
|
256
256
|
function Ne(e, r, t) {
|
|
@@ -266,12 +266,12 @@ function fr() {
|
|
|
266
266
|
if (typeof e == "function")
|
|
267
267
|
return ce(e, Ue(e));
|
|
268
268
|
if (typeof e == "string")
|
|
269
|
-
return
|
|
269
|
+
return M(e);
|
|
270
270
|
switch (e) {
|
|
271
271
|
case C:
|
|
272
|
-
return
|
|
272
|
+
return M("Suspense");
|
|
273
273
|
case b:
|
|
274
|
-
return
|
|
274
|
+
return M("SuspenseList");
|
|
275
275
|
}
|
|
276
276
|
if (typeof e == "object")
|
|
277
277
|
switch (e.$$typeof) {
|
|
@@ -300,19 +300,19 @@ function fr() {
|
|
|
300
300
|
function Ve(e, r, t, o, s) {
|
|
301
301
|
{
|
|
302
302
|
var c = Function.call.bind(W);
|
|
303
|
-
for (var
|
|
304
|
-
if (c(e,
|
|
303
|
+
for (var l in e)
|
|
304
|
+
if (c(e, l)) {
|
|
305
305
|
var a = void 0;
|
|
306
306
|
try {
|
|
307
|
-
if (typeof e[
|
|
308
|
-
var m = Error((o || "React class") + ": " + t + " type `" +
|
|
307
|
+
if (typeof e[l] != "function") {
|
|
308
|
+
var m = Error((o || "React class") + ": " + t + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
309
309
|
throw m.name = "Invariant Violation", m;
|
|
310
310
|
}
|
|
311
|
-
a = e[
|
|
311
|
+
a = e[l](r, l, o, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
312
312
|
} catch (d) {
|
|
313
313
|
a = d;
|
|
314
314
|
}
|
|
315
|
-
a && !(a instanceof Error) && (Y(s), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", t,
|
|
315
|
+
a && !(a instanceof Error) && (Y(s), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", t, l, typeof a), Y(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, Y(s), p("Failed %s type: %s", t, a.message), Y(null));
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
@@ -340,7 +340,7 @@ function fr() {
|
|
|
340
340
|
if (Je(e))
|
|
341
341
|
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), ve(e);
|
|
342
342
|
}
|
|
343
|
-
var
|
|
343
|
+
var D = O.ReactCurrentOwner, Ge = {
|
|
344
344
|
key: !0,
|
|
345
345
|
ref: !0,
|
|
346
346
|
__self: !0,
|
|
@@ -364,9 +364,9 @@ function fr() {
|
|
|
364
364
|
return e.key !== void 0;
|
|
365
365
|
}
|
|
366
366
|
function Xe(e, r) {
|
|
367
|
-
if (typeof e.ref == "string" &&
|
|
368
|
-
var t = w(
|
|
369
|
-
q[t] || (p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', w(
|
|
367
|
+
if (typeof e.ref == "string" && D.current && r && D.current.stateNode !== r) {
|
|
368
|
+
var t = w(D.current.type);
|
|
369
|
+
q[t] || (p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', w(D.current.type), e.ref), q[t] = !0);
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
function Ze(e, r) {
|
|
@@ -391,7 +391,7 @@ function fr() {
|
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
var er = function(e, r, t, o, s, c,
|
|
394
|
+
var er = function(e, r, t, o, s, c, l) {
|
|
395
395
|
var a = {
|
|
396
396
|
// This tag allows us to uniquely identify this as a React Element
|
|
397
397
|
$$typeof: u,
|
|
@@ -399,7 +399,7 @@ function fr() {
|
|
|
399
399
|
type: e,
|
|
400
400
|
key: r,
|
|
401
401
|
ref: t,
|
|
402
|
-
props:
|
|
402
|
+
props: l,
|
|
403
403
|
// Record the component responsible for creating this element.
|
|
404
404
|
_owner: c
|
|
405
405
|
};
|
|
@@ -422,20 +422,20 @@ function fr() {
|
|
|
422
422
|
};
|
|
423
423
|
function rr(e, r, t, o, s) {
|
|
424
424
|
{
|
|
425
|
-
var c,
|
|
425
|
+
var c, l = {}, a = null, m = null;
|
|
426
426
|
t !== void 0 && (ge(t), a = "" + t), Ke(r) && (ge(r.key), a = "" + r.key), He(r) && (m = r.ref, Xe(r, s));
|
|
427
427
|
for (c in r)
|
|
428
|
-
W.call(r, c) && !Ge.hasOwnProperty(c) && (
|
|
428
|
+
W.call(r, c) && !Ge.hasOwnProperty(c) && (l[c] = r[c]);
|
|
429
429
|
if (e && e.defaultProps) {
|
|
430
430
|
var d = e.defaultProps;
|
|
431
431
|
for (c in d)
|
|
432
|
-
|
|
432
|
+
l[c] === void 0 && (l[c] = d[c]);
|
|
433
433
|
}
|
|
434
434
|
if (a || m) {
|
|
435
435
|
var v = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
436
|
-
a && Ze(
|
|
436
|
+
a && Ze(l, v), m && Qe(l, v);
|
|
437
437
|
}
|
|
438
|
-
return er(e, a, m, s, o,
|
|
438
|
+
return er(e, a, m, s, o, D.current, l);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
var J = O.ReactCurrentOwner, me = O.ReactDebugCurrentFrame;
|
|
@@ -514,8 +514,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
514
514
|
else if (e) {
|
|
515
515
|
var s = xe(e);
|
|
516
516
|
if (typeof s == "function" && s !== e.entries)
|
|
517
|
-
for (var c = s.call(e),
|
|
518
|
-
H(
|
|
517
|
+
for (var c = s.call(e), l; !(l = c.next()).done; )
|
|
518
|
+
H(l.value) && Ee(l.value, r);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
}
|
|
@@ -558,8 +558,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
558
558
|
}
|
|
559
559
|
function we(e, r, t, o, s, c) {
|
|
560
560
|
{
|
|
561
|
-
var
|
|
562
|
-
if (!
|
|
561
|
+
var l = Me(e);
|
|
562
|
+
if (!l) {
|
|
563
563
|
var a = "";
|
|
564
564
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
565
565
|
var m = tr(s);
|
|
@@ -570,7 +570,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
570
570
|
var v = rr(e, r, t, s, c);
|
|
571
571
|
if (v == null)
|
|
572
572
|
return v;
|
|
573
|
-
if (
|
|
573
|
+
if (l) {
|
|
574
574
|
var y = r.children;
|
|
575
575
|
if (y !== void 0)
|
|
576
576
|
if (o)
|
|
@@ -583,18 +583,18 @@ Check the top-level render call using <` + t + ">.");
|
|
|
583
583
|
else
|
|
584
584
|
Re(y, e);
|
|
585
585
|
}
|
|
586
|
-
return e ===
|
|
586
|
+
return e === i ? ar(v) : or(v), v;
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
function ir(e, r, t) {
|
|
590
590
|
return we(e, r, t, !0);
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function lr(e, r, t) {
|
|
593
593
|
return we(e, r, t, !1);
|
|
594
594
|
}
|
|
595
|
-
var
|
|
596
|
-
|
|
597
|
-
}()),
|
|
595
|
+
var ur = lr, sr = ir;
|
|
596
|
+
F.Fragment = i, F.jsx = ur, F.jsxs = sr;
|
|
597
|
+
}()), F;
|
|
598
598
|
}
|
|
599
599
|
var I = {};
|
|
600
600
|
/**
|
|
@@ -611,16 +611,16 @@ function dr() {
|
|
|
611
611
|
if (Pe)
|
|
612
612
|
return I;
|
|
613
613
|
Pe = 1;
|
|
614
|
-
var n = Oe, u = Symbol.for("react.element"), g = Symbol.for("react.fragment"),
|
|
614
|
+
var n = Oe, u = Symbol.for("react.element"), g = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, f = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, E = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
615
615
|
function j(T, h, C) {
|
|
616
|
-
var b, R = {}, P = null,
|
|
617
|
-
C !== void 0 && (P = "" + C), h.key !== void 0 && (P = "" + h.key), h.ref !== void 0 && (
|
|
616
|
+
var b, R = {}, P = null, B = null;
|
|
617
|
+
C !== void 0 && (P = "" + C), h.key !== void 0 && (P = "" + h.key), h.ref !== void 0 && (B = h.ref);
|
|
618
618
|
for (b in h)
|
|
619
|
-
|
|
619
|
+
i.call(h, b) && !E.hasOwnProperty(b) && (R[b] = h[b]);
|
|
620
620
|
if (T && T.defaultProps)
|
|
621
621
|
for (b in h = T.defaultProps, h)
|
|
622
622
|
R[b] === void 0 && (R[b] = h[b]);
|
|
623
|
-
return { $$typeof: u, type: T, key: P, ref:
|
|
623
|
+
return { $$typeof: u, type: T, key: P, ref: B, props: R, _owner: f.current };
|
|
624
624
|
}
|
|
625
625
|
return I.Fragment = g, I.jsx = j, I.jsxs = j, I;
|
|
626
626
|
}
|
|
@@ -630,11 +630,11 @@ function gr(n) {
|
|
|
630
630
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
631
631
|
}
|
|
632
632
|
var hr = function(n, u, g) {
|
|
633
|
-
var
|
|
633
|
+
var i = document.head || document.getElementsByTagName("head")[0], f = document.createElement("script");
|
|
634
634
|
typeof u == "function" && (g = u, u = {}), u = u || {}, g = g || function() {
|
|
635
635
|
}, f.type = u.type || "text/javascript", f.charset = u.charset || "utf8", f.async = "async" in u ? !!u.async : !0, f.src = n, u.attrs && pr(f, u.attrs), u.text && (f.text = "" + u.text);
|
|
636
636
|
var E = "onload" in f ? Se : mr;
|
|
637
|
-
E(f, g), f.onload || Se(f, g),
|
|
637
|
+
E(f, g), f.onload || Se(f, g), i.appendChild(f);
|
|
638
638
|
};
|
|
639
639
|
function pr(n, u) {
|
|
640
640
|
for (var g in u)
|
|
@@ -664,10 +664,10 @@ function wr(n = "production") {
|
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
const Ce = {
|
|
667
|
-
init: (n, u) => new Promise((g,
|
|
667
|
+
init: (n, u) => new Promise((g, i) => {
|
|
668
668
|
const f = wr(u == null ? void 0 : u.stage);
|
|
669
669
|
br(f, (E) => {
|
|
670
|
-
E !== null &&
|
|
670
|
+
E !== null && i(E), window.TopolPlugin.init(n), g(!0);
|
|
671
671
|
});
|
|
672
672
|
}),
|
|
673
673
|
save: () => {
|
|
@@ -723,14 +723,14 @@ let K = !1, X = !1;
|
|
|
723
723
|
function Pr(n) {
|
|
724
724
|
const u = () => {
|
|
725
725
|
const g = {
|
|
726
|
-
onSave(
|
|
727
|
-
n.onSave !== void 0 && n.onSave(
|
|
726
|
+
onSave(i, f) {
|
|
727
|
+
n.onSave !== void 0 && n.onSave(i, f);
|
|
728
728
|
},
|
|
729
|
-
onSaveAndClose(
|
|
730
|
-
n.onSaveAndClose !== void 0 && n.onSaveAndClose(
|
|
729
|
+
onSaveAndClose(i, f) {
|
|
730
|
+
n.onSaveAndClose !== void 0 && n.onSaveAndClose(i, f);
|
|
731
731
|
},
|
|
732
|
-
onTestSend(
|
|
733
|
-
n.onTestSend !== void 0 && n.onTestSend(
|
|
732
|
+
onTestSend(i, f, E) {
|
|
733
|
+
n.onTestSend !== void 0 && n.onTestSend(i, f, E);
|
|
734
734
|
},
|
|
735
735
|
onOpenFileManager() {
|
|
736
736
|
n.onOpenFileManager !== void 0 && n.onOpenFileManager();
|
|
@@ -738,37 +738,40 @@ function Pr(n) {
|
|
|
738
738
|
onLoaded() {
|
|
739
739
|
n.onLoaded !== void 0 && n.onLoaded();
|
|
740
740
|
},
|
|
741
|
-
onBlockSave(
|
|
742
|
-
n.onBlockSave !== void 0 && n.onBlockSave(
|
|
741
|
+
onBlockSave(i) {
|
|
742
|
+
n.onBlockSave !== void 0 && n.onBlockSave(i);
|
|
743
743
|
},
|
|
744
|
-
onBlockRemove(
|
|
745
|
-
n.onBlockRemove !== void 0 && n.onBlockRemove(
|
|
744
|
+
onBlockRemove(i) {
|
|
745
|
+
n.onBlockRemove !== void 0 && n.onBlockRemove(i);
|
|
746
746
|
},
|
|
747
|
-
onBlockEdit(
|
|
748
|
-
n.onBlockEdit !== void 0 && n.onBlockEdit(
|
|
747
|
+
onBlockEdit(i) {
|
|
748
|
+
n.onBlockEdit !== void 0 && n.onBlockEdit(i);
|
|
749
749
|
},
|
|
750
750
|
onInit() {
|
|
751
751
|
n.onInit !== void 0 && n.onInit(), K = !1, X = !0;
|
|
752
752
|
},
|
|
753
|
-
onUndoChange(
|
|
754
|
-
n.onUndoChange !== void 0 && n.onUndoChange(
|
|
753
|
+
onUndoChange(i) {
|
|
754
|
+
n.onUndoChange !== void 0 && n.onUndoChange(i);
|
|
755
|
+
},
|
|
756
|
+
onRedoChange(i) {
|
|
757
|
+
n.onRedoChange !== void 0 && n.onRedoChange(i);
|
|
755
758
|
},
|
|
756
|
-
|
|
757
|
-
n.
|
|
759
|
+
onPreview(i) {
|
|
760
|
+
n.onPreview !== void 0 && n.onPreview(i);
|
|
758
761
|
},
|
|
759
|
-
|
|
760
|
-
n.
|
|
762
|
+
onAlert(i) {
|
|
763
|
+
n.onAlert !== void 0 && n.onAlert(i);
|
|
761
764
|
},
|
|
762
|
-
|
|
763
|
-
n.
|
|
765
|
+
onOpenCustomBlockDialog(i) {
|
|
766
|
+
n.onOpenCustomBlockDialog !== void 0 && n.onOpenCustomBlockDialog(i);
|
|
764
767
|
}
|
|
765
768
|
};
|
|
766
769
|
return { id: "#" + _r, ...n.options, callbacks: { ...g } };
|
|
767
770
|
};
|
|
768
771
|
return cr(() => (K || (async () => {
|
|
769
772
|
K = !0;
|
|
770
|
-
const
|
|
771
|
-
await Ce.init(
|
|
773
|
+
const i = u();
|
|
774
|
+
await Ce.init(i, { stage: n.stage || "production" });
|
|
772
775
|
})(), () => {
|
|
773
776
|
X && (Ce.destroy(), X = !1);
|
|
774
777
|
}), []), /* @__PURE__ */ vr.jsx(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(T,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(T=typeof globalThis<"u"?globalThis:T||self,P(T["topol-editor-react"]={},T.React))})(this,function(T,P){"use strict";var $={exports:{}},
|
|
1
|
+
(function(T,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(T=typeof globalThis<"u"?globalThis:T||self,P(T["topol-editor-react"]={},T.React))})(this,function(T,P){"use strict";var $={exports:{}},D={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.development.js
|
|
4
4
|
*
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var te;function je(){return te||(te=1,process.env.NODE_ENV!=="production"&&function(){var n=P,
|
|
10
|
-
`+H+e}}var K=!1,Y;{var tr=typeof WeakMap=="function"?WeakMap:Map;Y=new tr}function he(e,r){if(!e||K)return"";{var t=Y.get(e);if(t!==void 0)return t}var o;K=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=G.current,G.current=null,er();try{if(r){var
|
|
11
|
-
`),
|
|
12
|
-
`),d=a.length-1,v=
|
|
13
|
-
`+a[d].replace(" at new "," at ");return e.displayName&&
|
|
9
|
+
*/var te;function je(){return te||(te=1,process.env.NODE_ENV!=="production"&&function(){var n=P,l=Symbol.for("react.element"),g=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),S=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),ae=Symbol.iterator,$e="@@iterator";function ze(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[$e];return typeof r=="function"?r:null}var j=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];Je("error",e,t)}}function Je(e,r,t){{var o=j.ReactDebugCurrentFrame,s=o.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(u){return String(u)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var qe=!1,Ge=!1,He=!1,Ke=!1,Xe=!1,ie;ie=Symbol.for("react.module.reference");function Ze(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===E||Xe||e===f||e===k||e===y||Ke||e===L||qe||Ge||He||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===R||e.$$typeof===I||e.$$typeof===S||e.$$typeof===p||e.$$typeof===ie||e.getModuleId!==void 0))}function Qe(e,r,t){var o=e.displayName;if(o)return o;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function ue(e){return e.displayName||"Context"}function _(e){if(e==null)return null;if(typeof e.tag=="number"&&h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case i:return"Fragment";case g:return"Portal";case E:return"Profiler";case f:return"StrictMode";case k:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:var r=e;return ue(r)+".Consumer";case I:var t=e;return ue(t._context)+".Provider";case p:return Qe(e,e.render,"ForwardRef");case R:var o=e.displayName||null;return o!==null?o:_(e.type)||"Memo";case C:{var s=e,c=s._payload,u=s._init;try{return _(u(c))}catch{return null}}}return null}var O=Object.assign,M=0,le,se,ce,fe,de,ve,ge;function pe(){}pe.__reactDisabledLog=!0;function er(){{if(M===0){le=console.log,se=console.info,ce=console.warn,fe=console.error,de=console.group,ve=console.groupCollapsed,ge=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}}function rr(){{if(M--,M===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:le}),info:O({},e,{value:se}),warn:O({},e,{value:ce}),error:O({},e,{value:fe}),group:O({},e,{value:de}),groupCollapsed:O({},e,{value:ve}),groupEnd:O({},e,{value:ge})})}M<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=j.ReactCurrentDispatcher,H;function W(e,r,t){{if(H===void 0)try{throw Error()}catch(s){var o=s.stack.trim().match(/\n( *(at )?)/);H=o&&o[1]||""}return`
|
|
10
|
+
`+H+e}}var K=!1,Y;{var tr=typeof WeakMap=="function"?WeakMap:Map;Y=new tr}function he(e,r){if(!e||K)return"";{var t=Y.get(e);if(t!==void 0)return t}var o;K=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=G.current,G.current=null,er();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(w){o=w}Reflect.construct(e,[],u)}else{try{u.call()}catch(w){o=w}e.call(u.prototype)}}else{try{throw Error()}catch(w){o=w}e()}}catch(w){if(w&&o&&typeof w.stack=="string"){for(var a=w.stack.split(`
|
|
11
|
+
`),m=o.stack.split(`
|
|
12
|
+
`),d=a.length-1,v=m.length-1;d>=1&&v>=0&&a[d]!==m[v];)v--;for(;d>=1&&v>=0;d--,v--)if(a[d]!==m[v]){if(d!==1||v!==1)do if(d--,v--,v<0||a[d]!==m[v]){var b=`
|
|
13
|
+
`+a[d].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&Y.set(e,b),b}while(d>=1&&v>=0);break}}}finally{K=!1,G.current=c,rr(),Error.prepareStackTrace=s}var A=e?e.displayName||e.name:"",ke=A?W(A):"";return typeof e=="function"&&Y.set(e,ke),ke}function nr(e,r,t){return he(e,!1)}function or(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function N(e,r,t){if(e==null)return"";if(typeof e=="function")return he(e,or(e));if(typeof e=="string")return W(e);switch(e){case k:return W("Suspense");case y:return W("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return nr(e.render);case R:return N(e.type,r,t);case C:{var o=e,s=o._payload,c=o._init;try{return N(c(s),r,t)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,me={},ye=j.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function ar(e,r,t,o,s){{var c=Function.call.bind(U);for(var u in e)if(c(e,u)){var a=void 0;try{if(typeof e[u]!="function"){var m=Error((o||"React class")+": "+t+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}a=e[u](r,u,o,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){a=d}a&&!(a instanceof Error)&&(V(s),h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",t,u,typeof a),V(null)),a instanceof Error&&!(a.message in me)&&(me[a.message]=!0,V(s),h("Failed %s type: %s",t,a.message),V(null))}}}var ir=Array.isArray;function X(e){return ir(e)}function ur(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function lr(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function Ee(e){if(lr(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ur(e)),be(e)}var B=j.ReactCurrentOwner,sr={key:!0,ref:!0,__self:!0,__source:!0},Re,_e,Z;Z={};function cr(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function fr(e){if(U.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function dr(e,r){if(typeof e.ref=="string"&&B.current&&r&&B.current.stateNode!==r){var t=_(B.current.type);Z[t]||(h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',_(B.current.type),e.ref),Z[t]=!0)}}function vr(e,r){{var t=function(){Re||(Re=!0,h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function gr(e,r){{var t=function(){_e||(_e=!0,h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var pr=function(e,r,t,o,s,c,u){var a={$$typeof:l,type:e,key:r,ref:t,props:u,_owner:c};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function hr(e,r,t,o,s){{var c,u={},a=null,m=null;t!==void 0&&(Ee(t),a=""+t),fr(r)&&(Ee(r.key),a=""+r.key),cr(r)&&(m=r.ref,dr(r,s));for(c in r)U.call(r,c)&&!sr.hasOwnProperty(c)&&(u[c]=r[c]);if(e&&e.defaultProps){var d=e.defaultProps;for(c in d)u[c]===void 0&&(u[c]=d[c])}if(a||m){var v=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&vr(u,v),m&&gr(u,v)}return pr(e,a,m,s,o,B.current,u)}}var Q=j.ReactCurrentOwner,we=j.ReactDebugCurrentFrame;function x(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);we.setExtraStackFrame(t)}else we.setExtraStackFrame(null)}var ee;ee=!1;function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===l}function Te(){{if(Q.current){var e=_(Q.current.type);if(e)return`
|
|
14
14
|
|
|
15
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
15
|
+
Check the render method of \``+e+"`."}return""}}function mr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
16
16
|
|
|
17
|
-
Check your code at `+r+":"+t+"."}return""}}var Pe={};function
|
|
17
|
+
Check your code at `+r+":"+t+"."}return""}}var Pe={};function yr(e){{var r=Te();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
18
18
|
|
|
19
|
-
Check the top-level render call using <`+t+">.")}return r}}function Se(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=
|
|
19
|
+
Check the top-level render call using <`+t+">.")}return r}}function Se(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=yr(r);if(Pe[t])return;Pe[t]=!0;var o="";e&&e._owner&&e._owner!==Q.current&&(o=" It was passed a child from "+_(e._owner.type)+"."),x(e),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,o),x(null)}}function Ce(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var o=e[t];re(o)&&Se(o,r)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var s=ze(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),u;!(u=c.next()).done;)re(u.value)&&Se(u.value,r)}}}function br(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===p||r.$$typeof===R))t=r.propTypes;else return;if(t){var o=_(r);ar(t,e.props,"prop",o,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var s=_(r);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Er(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var o=r[t];if(o!=="children"&&o!=="key"){x(e),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),x(null);break}}e.ref!==null&&(x(e),h("Invalid attribute `ref` supplied to `React.Fragment`."),x(null))}}function Oe(e,r,t,o,s,c){{var u=Ze(e);if(!u){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var m=mr(s);m?a+=m:a+=Te();var d;e===null?d="null":X(e)?d="array":e!==void 0&&e.$$typeof===l?(d="<"+(_(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,a)}var v=hr(e,r,t,s,c);if(v==null)return v;if(u){var b=r.children;if(b!==void 0)if(o)if(X(b)){for(var A=0;A<b.length;A++)Ce(b[A],e);Object.freeze&&Object.freeze(b)}else h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ce(b,e)}return e===i?Er(v):br(v),v}}function Rr(e,r,t){return Oe(e,r,t,!0)}function _r(e,r,t){return Oe(e,r,t,!1)}var wr=_r,Tr=Rr;D.Fragment=i,D.jsx=wr,D.jsxs=Tr}()),D}var F={};/**
|
|
20
20
|
* @license React
|
|
21
21
|
* react-jsx-runtime.production.min.js
|
|
22
22
|
*
|
|
@@ -24,4 +24,4 @@ Check the top-level render call using <`+t+">.")}return r}}function Se(e,r){{if(
|
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the MIT license found in the
|
|
26
26
|
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/var ne;function xe(){if(ne)return
|
|
27
|
+
*/var ne;function xe(){if(ne)return F;ne=1;var n=P,l=Symbol.for("react.element"),g=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,E={key:!0,ref:!0,__self:!0,__source:!0};function I(S,p,k){var y,R={},C=null,L=null;k!==void 0&&(C=""+k),p.key!==void 0&&(C=""+p.key),p.ref!==void 0&&(L=p.ref);for(y in p)i.call(p,y)&&!E.hasOwnProperty(y)&&(R[y]=p[y]);if(S&&S.defaultProps)for(y in p=S.defaultProps,p)R[y]===void 0&&(R[y]=p[y]);return{$$typeof:l,type:S,key:C,ref:L,props:R,_owner:f.current}}return F.Fragment=g,F.jsx=I,F.jsxs=I,F}process.env.NODE_ENV==="production"?$.exports=xe():$.exports=je();var Ae=$.exports;function De(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Fe=function(n,l,g){var i=document.head||document.getElementsByTagName("head")[0],f=document.createElement("script");typeof l=="function"&&(g=l,l={}),l=l||{},g=g||function(){},f.type=l.type||"text/javascript",f.charset=l.charset||"utf8",f.async="async"in l?!!l.async:!0,f.src=n,l.attrs&&Ie(f,l.attrs),l.text&&(f.text=""+l.text);var E="onload"in f?oe:Me;E(f,g),f.onload||oe(f,g),i.appendChild(f)};function Ie(n,l){for(var g in l)n.setAttribute(g,l[g])}function oe(n,l){n.onload=function(){this.onerror=this.onload=null,l(null,n)},n.onerror=function(){this.onerror=this.onload=null,l(new Error("Failed to load "+this.src),n)}}function Me(n,l){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,l(null,n))}}const Be=De(Fe),Le="https://d5aoblv5p04cg.cloudfront.net/editor-3/loader/build.js",We="https://d5aoblv5p04cg.cloudfront.net/develop/loader/build.js",Ye="https://d5aoblv5p04cg.cloudfront.net/staging/loader/build.js";function Ne(n="production"){switch(n){case"dev":return We;case"staging":return Ye;default:return Le}}const z={init:(n,l)=>new Promise((g,i)=>{const f=Ne(l==null?void 0:l.stage);Be(f,E=>{E!==null&&i(E),window.TopolPlugin.init(n),g(!0)})}),save:()=>{window.TopolPlugin.save()},load:n=>{window.TopolPlugin.load(n)},togglePreview:()=>{window.TopolPlugin.togglePreview()},togglePreviewSize:()=>{window.TopolPlugin.togglePreviewSize()},chooseFile:n=>{window.TopolPlugin.chooseFile(n)},undo:()=>{window.TopolPlugin.undo()},redo:()=>{window.TopolPlugin.redo()},setSavedBlocks:n=>{window.TopolPlugin.setSavedBlocks(n)},createNotification:n=>{window.TopolPlugin.createNotification(n)},changeEmailToMobile:()=>{window.TopolPlugin.changeEmailToMobile()},changeEmailToDesktop:()=>{window.TopolPlugin.changeEmailToDesktop()},toggleBlocksAndStructuresVisibility:()=>{window.TopolPlugin.toggleBlocksAndStructuresVisibility()},destroy:()=>{window.TopolPlugin.destroy()},setPreviewHTML:n=>{window.TopolPlugin.setPreviewHTML(n)},setActiveMembers:n=>{window.TopolPlugin.setActiveMembers(n)},updateCustomBlockContent:n=>{window.TopolPlugin.updateCustomBlockContent(n)}},Ue="editor";let J=!1,q=!1;function Ve(n){const l=()=>{const g={onSave(i,f){n.onSave!==void 0&&n.onSave(i,f)},onSaveAndClose(i,f){n.onSaveAndClose!==void 0&&n.onSaveAndClose(i,f)},onTestSend(i,f,E){n.onTestSend!==void 0&&n.onTestSend(i,f,E)},onOpenFileManager(){n.onOpenFileManager!==void 0&&n.onOpenFileManager()},onLoaded(){n.onLoaded!==void 0&&n.onLoaded()},onBlockSave(i){n.onBlockSave!==void 0&&n.onBlockSave(i)},onBlockRemove(i){n.onBlockRemove!==void 0&&n.onBlockRemove(i)},onBlockEdit(i){n.onBlockEdit!==void 0&&n.onBlockEdit(i)},onInit(){n.onInit!==void 0&&n.onInit(),J=!1,q=!0},onUndoChange(i){n.onUndoChange!==void 0&&n.onUndoChange(i)},onRedoChange(i){n.onRedoChange!==void 0&&n.onRedoChange(i)},onPreview(i){n.onPreview!==void 0&&n.onPreview(i)},onAlert(i){n.onAlert!==void 0&&n.onAlert(i)},onOpenCustomBlockDialog(i){n.onOpenCustomBlockDialog!==void 0&&n.onOpenCustomBlockDialog(i)}};return{id:"#"+Ue,...n.options,callbacks:{...g}}};return P.useEffect(()=>(J||(async()=>{J=!0;const i=l();await z.init(i,{stage:n.stage||"production"})})(),()=>{q&&(z.destroy(),q=!1)}),[]),Ae.jsx("div",{id:"editor",style:{position:"absolute",height:"100vh",width:"100%"}})}T.TopolPlugin=z,T.default=Ve,Object.defineProperties(T,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -16,6 +16,7 @@ type TopolEditorProps = {
|
|
|
16
16
|
onRedoChange?(count: number): void;
|
|
17
17
|
onPreview?(html: unknown): void;
|
|
18
18
|
onAlert?(notification: INotification): void;
|
|
19
|
+
onOpenCustomBlockDialog?(blockContent: unknown): void;
|
|
19
20
|
};
|
|
20
21
|
export default function TopolEditor(props: TopolEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
export type { IReactTopolOptions, INotification, ISavedBlock };
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"email-react",
|
|
12
12
|
"email templates"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.
|
|
14
|
+
"version": "0.0.2",
|
|
15
15
|
"author": "Topol.io",
|
|
16
16
|
"homepage": "https://topol.io",
|
|
17
17
|
"license": "Apache-2.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@topol.io/editor": "0.0.
|
|
33
|
+
"@topol.io/editor": "0.0.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^20.7.0",
|