@topol.io/editor-react 0.0.0-alfa.3 → 0.0.1
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,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Oe, { useEffect as cr } from "react";
|
|
2
2
|
var Z = { exports: {} }, D = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -12,51 +12,51 @@ 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
|
|
15
|
+
var n = Oe, u = Symbol.for("react.element"), g = Symbol.for("react.portal"), l = 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"), M = 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;
|
|
19
19
|
var r = Q && e[Q] || e[ke];
|
|
20
20
|
return typeof r == "function" ? r : null;
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var O = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
23
23
|
function p(e) {
|
|
24
24
|
{
|
|
25
|
-
for (var r = arguments.length,
|
|
26
|
-
|
|
27
|
-
je("error", e,
|
|
25
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
26
|
+
t[o - 1] = arguments[o];
|
|
27
|
+
je("error", e, t);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
function je(e, r,
|
|
30
|
+
function je(e, r, t) {
|
|
31
31
|
{
|
|
32
|
-
var
|
|
33
|
-
s !== "" && (r += "%s",
|
|
34
|
-
var c =
|
|
32
|
+
var o = O.ReactDebugCurrentFrame, s = o.getStackAddendum();
|
|
33
|
+
s !== "" && (r += "%s", t = t.concat([s]));
|
|
34
|
+
var c = t.map(function(i) {
|
|
35
35
|
return String(i);
|
|
36
36
|
});
|
|
37
37
|
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
var Ae = !1, Fe = !1, De = !1, Ie = !1,
|
|
40
|
+
var Ae = !1, Fe = !1, De = !1, Ie = !1, Me = !1, ee;
|
|
41
41
|
ee = Symbol.for("react.module.reference");
|
|
42
|
-
function
|
|
43
|
-
return !!(typeof e == "string" || typeof e == "function" || e === l || e ===
|
|
42
|
+
function Be(e) {
|
|
43
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === E || Me || e === f || e === C || e === b || Ie || e === M || Ae || Fe || De || 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.
|
|
47
47
|
e.$$typeof === ee || e.getModuleId !== void 0));
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
var
|
|
51
|
-
if (
|
|
52
|
-
return
|
|
49
|
+
function Le(e, r, t) {
|
|
50
|
+
var o = e.displayName;
|
|
51
|
+
if (o)
|
|
52
|
+
return o;
|
|
53
53
|
var s = r.displayName || r.name || "";
|
|
54
|
-
return s !== "" ?
|
|
54
|
+
return s !== "" ? t + "(" + s + ")" : t;
|
|
55
55
|
}
|
|
56
56
|
function re(e) {
|
|
57
57
|
return e.displayName || "Context";
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function w(e) {
|
|
60
60
|
if (e == null)
|
|
61
61
|
return null;
|
|
62
62
|
if (typeof e.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -68,13 +68,13 @@ function fr() {
|
|
|
68
68
|
return "Fragment";
|
|
69
69
|
case g:
|
|
70
70
|
return "Portal";
|
|
71
|
-
case
|
|
71
|
+
case E:
|
|
72
72
|
return "Profiler";
|
|
73
73
|
case f:
|
|
74
74
|
return "StrictMode";
|
|
75
|
-
case
|
|
75
|
+
case C:
|
|
76
76
|
return "Suspense";
|
|
77
|
-
case
|
|
77
|
+
case b:
|
|
78
78
|
return "SuspenseList";
|
|
79
79
|
}
|
|
80
80
|
if (typeof e == "object")
|
|
@@ -83,17 +83,17 @@ function fr() {
|
|
|
83
83
|
var r = e;
|
|
84
84
|
return re(r) + ".Consumer";
|
|
85
85
|
case j:
|
|
86
|
-
var
|
|
87
|
-
return re(
|
|
86
|
+
var t = e;
|
|
87
|
+
return re(t._context) + ".Provider";
|
|
88
88
|
case h:
|
|
89
|
-
return
|
|
89
|
+
return Le(e, e.render, "ForwardRef");
|
|
90
90
|
case R:
|
|
91
|
-
var
|
|
92
|
-
return
|
|
91
|
+
var o = e.displayName || null;
|
|
92
|
+
return o !== null ? o : w(e.type) || "Memo";
|
|
93
93
|
case P: {
|
|
94
94
|
var s = e, c = s._payload, i = s._init;
|
|
95
95
|
try {
|
|
96
|
-
return
|
|
96
|
+
return w(i(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, ne,
|
|
104
|
+
var S = Object.assign, A = 0, te, ne, oe, ae, ie, ue, le;
|
|
105
105
|
function se() {
|
|
106
106
|
}
|
|
107
107
|
se.__reactDisabledLog = !0;
|
|
108
|
-
function
|
|
108
|
+
function $e() {
|
|
109
109
|
{
|
|
110
110
|
if (A === 0) {
|
|
111
|
-
|
|
111
|
+
te = console.log, ne = console.info, oe = console.warn, ae = console.error, ie = console.group, ue = console.groupCollapsed, le = console.groupEnd;
|
|
112
112
|
var e = {
|
|
113
113
|
configurable: !0,
|
|
114
114
|
enumerable: !0,
|
|
@@ -128,7 +128,7 @@ function fr() {
|
|
|
128
128
|
A++;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function We() {
|
|
132
132
|
{
|
|
133
133
|
if (A--, A === 0) {
|
|
134
134
|
var e = {
|
|
@@ -138,16 +138,16 @@ function fr() {
|
|
|
138
138
|
};
|
|
139
139
|
Object.defineProperties(console, {
|
|
140
140
|
log: S({}, e, {
|
|
141
|
-
value:
|
|
141
|
+
value: te
|
|
142
142
|
}),
|
|
143
143
|
info: S({}, e, {
|
|
144
|
-
value:
|
|
144
|
+
value: ne
|
|
145
145
|
}),
|
|
146
146
|
warn: S({}, e, {
|
|
147
|
-
value:
|
|
147
|
+
value: oe
|
|
148
148
|
}),
|
|
149
149
|
error: S({}, e, {
|
|
150
|
-
value:
|
|
150
|
+
value: ae
|
|
151
151
|
}),
|
|
152
152
|
group: S({}, e, {
|
|
153
153
|
value: ie
|
|
@@ -163,39 +163,39 @@ function fr() {
|
|
|
163
163
|
A < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
var N =
|
|
167
|
-
function
|
|
166
|
+
var N = O.ReactCurrentDispatcher, U;
|
|
167
|
+
function B(e, r, t) {
|
|
168
168
|
{
|
|
169
169
|
if (U === void 0)
|
|
170
170
|
try {
|
|
171
171
|
throw Error();
|
|
172
172
|
} catch (s) {
|
|
173
|
-
var
|
|
174
|
-
U =
|
|
173
|
+
var o = s.stack.trim().match(/\n( *(at )?)/);
|
|
174
|
+
U = o && o[1] || "";
|
|
175
175
|
}
|
|
176
176
|
return `
|
|
177
177
|
` + U + e;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
var V = !1,
|
|
180
|
+
var V = !1, L;
|
|
181
181
|
{
|
|
182
182
|
var Ye = typeof WeakMap == "function" ? WeakMap : Map;
|
|
183
|
-
|
|
183
|
+
L = new Ye();
|
|
184
184
|
}
|
|
185
185
|
function ce(e, r) {
|
|
186
186
|
if (!e || V)
|
|
187
187
|
return "";
|
|
188
188
|
{
|
|
189
|
-
var
|
|
190
|
-
if (
|
|
191
|
-
return
|
|
189
|
+
var t = L.get(e);
|
|
190
|
+
if (t !== void 0)
|
|
191
|
+
return t;
|
|
192
192
|
}
|
|
193
|
-
var
|
|
193
|
+
var o;
|
|
194
194
|
V = !0;
|
|
195
195
|
var s = Error.prepareStackTrace;
|
|
196
196
|
Error.prepareStackTrace = void 0;
|
|
197
197
|
var c;
|
|
198
|
-
c = N.current, N.current = null,
|
|
198
|
+
c = N.current, N.current = null, $e();
|
|
199
199
|
try {
|
|
200
200
|
if (r) {
|
|
201
201
|
var i = function() {
|
|
@@ -208,111 +208,111 @@ function fr() {
|
|
|
208
208
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
209
209
|
try {
|
|
210
210
|
Reflect.construct(i, []);
|
|
211
|
-
} catch (
|
|
212
|
-
|
|
211
|
+
} catch (_) {
|
|
212
|
+
o = _;
|
|
213
213
|
}
|
|
214
214
|
Reflect.construct(e, [], i);
|
|
215
215
|
} else {
|
|
216
216
|
try {
|
|
217
217
|
i.call();
|
|
218
|
-
} catch (
|
|
219
|
-
|
|
218
|
+
} catch (_) {
|
|
219
|
+
o = _;
|
|
220
220
|
}
|
|
221
221
|
e.call(i.prototype);
|
|
222
222
|
}
|
|
223
223
|
} else {
|
|
224
224
|
try {
|
|
225
225
|
throw Error();
|
|
226
|
-
} catch (
|
|
227
|
-
|
|
226
|
+
} catch (_) {
|
|
227
|
+
o = _;
|
|
228
228
|
}
|
|
229
229
|
e();
|
|
230
230
|
}
|
|
231
|
-
} catch (
|
|
232
|
-
if (
|
|
233
|
-
for (var
|
|
234
|
-
`),
|
|
235
|
-
`), d =
|
|
231
|
+
} catch (_) {
|
|
232
|
+
if (_ && o && typeof _.stack == "string") {
|
|
233
|
+
for (var a = _.stack.split(`
|
|
234
|
+
`), m = o.stack.split(`
|
|
235
|
+
`), d = a.length - 1, v = m.length - 1; d >= 1 && v >= 0 && a[d] !== m[v]; )
|
|
236
236
|
v--;
|
|
237
237
|
for (; d >= 1 && v >= 0; d--, v--)
|
|
238
|
-
if (
|
|
238
|
+
if (a[d] !== m[v]) {
|
|
239
239
|
if (d !== 1 || v !== 1)
|
|
240
240
|
do
|
|
241
|
-
if (d--, v--, v < 0 ||
|
|
242
|
-
var
|
|
243
|
-
` +
|
|
244
|
-
return e.displayName &&
|
|
241
|
+
if (d--, v--, v < 0 || a[d] !== m[v]) {
|
|
242
|
+
var y = `
|
|
243
|
+
` + a[d].replace(" at new ", " at ");
|
|
244
|
+
return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, y), y;
|
|
245
245
|
}
|
|
246
246
|
while (d >= 1 && v >= 0);
|
|
247
247
|
break;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
} finally {
|
|
251
|
-
V = !1, N.current = c,
|
|
251
|
+
V = !1, N.current = c, We(), Error.prepareStackTrace = s;
|
|
252
252
|
}
|
|
253
|
-
var x = e ? e.displayName || e.name : "",
|
|
254
|
-
return typeof e == "function" &&
|
|
253
|
+
var x = e ? e.displayName || e.name : "", _e = x ? B(x) : "";
|
|
254
|
+
return typeof e == "function" && L.set(e, _e), _e;
|
|
255
255
|
}
|
|
256
|
-
function Ne(e, r,
|
|
256
|
+
function Ne(e, r, t) {
|
|
257
257
|
return ce(e, !1);
|
|
258
258
|
}
|
|
259
259
|
function Ue(e) {
|
|
260
260
|
var r = e.prototype;
|
|
261
261
|
return !!(r && r.isReactComponent);
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function $(e, r, t) {
|
|
264
264
|
if (e == null)
|
|
265
265
|
return "";
|
|
266
266
|
if (typeof e == "function")
|
|
267
267
|
return ce(e, Ue(e));
|
|
268
268
|
if (typeof e == "string")
|
|
269
|
-
return
|
|
269
|
+
return B(e);
|
|
270
270
|
switch (e) {
|
|
271
|
-
case
|
|
272
|
-
return
|
|
273
|
-
case
|
|
274
|
-
return
|
|
271
|
+
case C:
|
|
272
|
+
return B("Suspense");
|
|
273
|
+
case b:
|
|
274
|
+
return B("SuspenseList");
|
|
275
275
|
}
|
|
276
276
|
if (typeof e == "object")
|
|
277
277
|
switch (e.$$typeof) {
|
|
278
278
|
case h:
|
|
279
279
|
return Ne(e.render);
|
|
280
280
|
case R:
|
|
281
|
-
return
|
|
281
|
+
return $(e.type, r, t);
|
|
282
282
|
case P: {
|
|
283
|
-
var
|
|
283
|
+
var o = e, s = o._payload, c = o._init;
|
|
284
284
|
try {
|
|
285
|
-
return
|
|
285
|
+
return $(c(s), r, t);
|
|
286
286
|
} catch {
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
return "";
|
|
291
291
|
}
|
|
292
|
-
var
|
|
292
|
+
var W = Object.prototype.hasOwnProperty, fe = {}, de = O.ReactDebugCurrentFrame;
|
|
293
293
|
function Y(e) {
|
|
294
294
|
if (e) {
|
|
295
|
-
var r = e._owner,
|
|
296
|
-
de.setExtraStackFrame(
|
|
295
|
+
var r = e._owner, t = $(e.type, e._source, r ? r.type : null);
|
|
296
|
+
de.setExtraStackFrame(t);
|
|
297
297
|
} else
|
|
298
298
|
de.setExtraStackFrame(null);
|
|
299
299
|
}
|
|
300
|
-
function Ve(e, r,
|
|
300
|
+
function Ve(e, r, t, o, s) {
|
|
301
301
|
{
|
|
302
|
-
var c = Function.call.bind(
|
|
302
|
+
var c = Function.call.bind(W);
|
|
303
303
|
for (var i in e)
|
|
304
304
|
if (c(e, i)) {
|
|
305
|
-
var
|
|
305
|
+
var a = void 0;
|
|
306
306
|
try {
|
|
307
307
|
if (typeof e[i] != "function") {
|
|
308
|
-
var
|
|
309
|
-
throw
|
|
308
|
+
var m = Error((o || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
309
|
+
throw m.name = "Invariant Violation", m;
|
|
310
310
|
}
|
|
311
|
-
|
|
311
|
+
a = e[i](r, i, o, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
312
312
|
} catch (d) {
|
|
313
|
-
|
|
313
|
+
a = d;
|
|
314
314
|
}
|
|
315
|
-
|
|
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, i, 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
|
}
|
|
@@ -322,8 +322,8 @@ function fr() {
|
|
|
322
322
|
}
|
|
323
323
|
function qe(e) {
|
|
324
324
|
{
|
|
325
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
|
326
|
-
return
|
|
325
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
326
|
+
return t;
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
function Je(e) {
|
|
@@ -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 F =
|
|
343
|
+
var F = O.ReactCurrentOwner, Ge = {
|
|
344
344
|
key: !0,
|
|
345
345
|
ref: !0,
|
|
346
346
|
__self: !0,
|
|
@@ -348,7 +348,7 @@ function fr() {
|
|
|
348
348
|
}, he, pe, q;
|
|
349
349
|
q = {};
|
|
350
350
|
function He(e) {
|
|
351
|
-
if (
|
|
351
|
+
if (W.call(e, "ref")) {
|
|
352
352
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
353
353
|
if (r && r.isReactWarning)
|
|
354
354
|
return !1;
|
|
@@ -356,7 +356,7 @@ function fr() {
|
|
|
356
356
|
return e.ref !== void 0;
|
|
357
357
|
}
|
|
358
358
|
function Ke(e) {
|
|
359
|
-
if (
|
|
359
|
+
if (W.call(e, "key")) {
|
|
360
360
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
361
361
|
if (r && r.isReactWarning)
|
|
362
362
|
return !1;
|
|
@@ -365,96 +365,96 @@ function fr() {
|
|
|
365
365
|
}
|
|
366
366
|
function Xe(e, r) {
|
|
367
367
|
if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) {
|
|
368
|
-
var
|
|
369
|
-
q[
|
|
368
|
+
var t = w(F.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(F.current.type), e.ref), q[t] = !0);
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
function Ze(e, r) {
|
|
373
373
|
{
|
|
374
|
-
var
|
|
374
|
+
var t = function() {
|
|
375
375
|
he || (he = !0, p("%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));
|
|
376
376
|
};
|
|
377
|
-
|
|
378
|
-
get:
|
|
377
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
378
|
+
get: t,
|
|
379
379
|
configurable: !0
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
function Qe(e, r) {
|
|
384
384
|
{
|
|
385
|
-
var
|
|
385
|
+
var t = function() {
|
|
386
386
|
pe || (pe = !0, p("%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));
|
|
387
387
|
};
|
|
388
|
-
|
|
389
|
-
get:
|
|
388
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
389
|
+
get: t,
|
|
390
390
|
configurable: !0
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
var er = function(e, r,
|
|
395
|
-
var
|
|
394
|
+
var er = function(e, r, t, o, s, c, i) {
|
|
395
|
+
var a = {
|
|
396
396
|
// This tag allows us to uniquely identify this as a React Element
|
|
397
397
|
$$typeof: u,
|
|
398
398
|
// Built-in properties that belong on the element
|
|
399
399
|
type: e,
|
|
400
400
|
key: r,
|
|
401
|
-
ref:
|
|
401
|
+
ref: t,
|
|
402
402
|
props: i,
|
|
403
403
|
// Record the component responsible for creating this element.
|
|
404
404
|
_owner: c
|
|
405
405
|
};
|
|
406
|
-
return
|
|
406
|
+
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
407
407
|
configurable: !1,
|
|
408
408
|
enumerable: !1,
|
|
409
409
|
writable: !0,
|
|
410
410
|
value: !1
|
|
411
|
-
}), Object.defineProperty(
|
|
411
|
+
}), Object.defineProperty(a, "_self", {
|
|
412
412
|
configurable: !1,
|
|
413
413
|
enumerable: !1,
|
|
414
414
|
writable: !1,
|
|
415
|
-
value:
|
|
416
|
-
}), Object.defineProperty(
|
|
415
|
+
value: o
|
|
416
|
+
}), Object.defineProperty(a, "_source", {
|
|
417
417
|
configurable: !1,
|
|
418
418
|
enumerable: !1,
|
|
419
419
|
writable: !1,
|
|
420
420
|
value: s
|
|
421
|
-
}), Object.freeze && (Object.freeze(
|
|
421
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
422
422
|
};
|
|
423
|
-
function rr(e, r,
|
|
423
|
+
function rr(e, r, t, o, s) {
|
|
424
424
|
{
|
|
425
|
-
var c, i = {},
|
|
426
|
-
|
|
425
|
+
var c, i = {}, a = null, m = null;
|
|
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
|
-
|
|
428
|
+
W.call(r, c) && !Ge.hasOwnProperty(c) && (i[c] = r[c]);
|
|
429
429
|
if (e && e.defaultProps) {
|
|
430
430
|
var d = e.defaultProps;
|
|
431
431
|
for (c in d)
|
|
432
432
|
i[c] === void 0 && (i[c] = d[c]);
|
|
433
433
|
}
|
|
434
|
-
if (
|
|
434
|
+
if (a || m) {
|
|
435
435
|
var v = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
436
|
-
|
|
436
|
+
a && Ze(i, v), m && Qe(i, v);
|
|
437
437
|
}
|
|
438
|
-
return er(e,
|
|
438
|
+
return er(e, a, m, s, o, F.current, i);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
var J =
|
|
441
|
+
var J = O.ReactCurrentOwner, me = O.ReactDebugCurrentFrame;
|
|
442
442
|
function k(e) {
|
|
443
443
|
if (e) {
|
|
444
|
-
var r = e._owner,
|
|
445
|
-
|
|
444
|
+
var r = e._owner, t = $(e.type, e._source, r ? r.type : null);
|
|
445
|
+
me.setExtraStackFrame(t);
|
|
446
446
|
} else
|
|
447
|
-
|
|
447
|
+
me.setExtraStackFrame(null);
|
|
448
448
|
}
|
|
449
449
|
var G;
|
|
450
450
|
G = !1;
|
|
451
451
|
function H(e) {
|
|
452
452
|
return typeof e == "object" && e !== null && e.$$typeof === u;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function be() {
|
|
455
455
|
{
|
|
456
456
|
if (J.current) {
|
|
457
|
-
var e =
|
|
457
|
+
var e = w(J.current.type);
|
|
458
458
|
if (e)
|
|
459
459
|
return `
|
|
460
460
|
|
|
@@ -463,41 +463,41 @@ Check the render method of \`` + e + "`.";
|
|
|
463
463
|
return "";
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function tr(e) {
|
|
467
467
|
{
|
|
468
468
|
if (e !== void 0) {
|
|
469
|
-
var r = e.fileName.replace(/^.*[\\\/]/, ""),
|
|
469
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
470
470
|
return `
|
|
471
471
|
|
|
472
|
-
Check your code at ` + r + ":" +
|
|
472
|
+
Check your code at ` + r + ":" + t + ".";
|
|
473
473
|
}
|
|
474
474
|
return "";
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
function
|
|
477
|
+
var ye = {};
|
|
478
|
+
function nr(e) {
|
|
479
479
|
{
|
|
480
|
-
var r =
|
|
480
|
+
var r = be();
|
|
481
481
|
if (!r) {
|
|
482
|
-
var
|
|
483
|
-
|
|
482
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
483
|
+
t && (r = `
|
|
484
484
|
|
|
485
|
-
Check the top-level render call using <` +
|
|
485
|
+
Check the top-level render call using <` + t + ">.");
|
|
486
486
|
}
|
|
487
487
|
return r;
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Ee(e, r) {
|
|
491
491
|
{
|
|
492
492
|
if (!e._store || e._store.validated || e.key != null)
|
|
493
493
|
return;
|
|
494
494
|
e._store.validated = !0;
|
|
495
|
-
var
|
|
496
|
-
if (
|
|
495
|
+
var t = nr(r);
|
|
496
|
+
if (ye[t])
|
|
497
497
|
return;
|
|
498
|
-
|
|
499
|
-
var
|
|
500
|
-
e && e._owner && e._owner !== J.current && (
|
|
498
|
+
ye[t] = !0;
|
|
499
|
+
var o = "";
|
|
500
|
+
e && e._owner && e._owner !== J.current && (o = " It was passed a child from " + w(e._owner.type) + "."), k(e), p('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), k(null);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
function Re(e, r) {
|
|
@@ -505,9 +505,9 @@ Check the top-level render call using <` + n + ">.");
|
|
|
505
505
|
if (typeof e != "object")
|
|
506
506
|
return;
|
|
507
507
|
if (z(e))
|
|
508
|
-
for (var
|
|
509
|
-
var
|
|
510
|
-
H(
|
|
508
|
+
for (var t = 0; t < e.length; t++) {
|
|
509
|
+
var o = e[t];
|
|
510
|
+
H(o) && Ee(o, r);
|
|
511
511
|
}
|
|
512
512
|
else if (H(e))
|
|
513
513
|
e._store && (e._store.validated = !0);
|
|
@@ -515,82 +515,82 @@ Check the top-level render call using <` + n + ">.");
|
|
|
515
515
|
var s = xe(e);
|
|
516
516
|
if (typeof s == "function" && s !== e.entries)
|
|
517
517
|
for (var c = s.call(e), i; !(i = c.next()).done; )
|
|
518
|
-
H(i.value) &&
|
|
518
|
+
H(i.value) && Ee(i.value, r);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function or(e) {
|
|
523
523
|
{
|
|
524
524
|
var r = e.type;
|
|
525
525
|
if (r == null || typeof r == "string")
|
|
526
526
|
return;
|
|
527
|
-
var
|
|
527
|
+
var t;
|
|
528
528
|
if (typeof r == "function")
|
|
529
|
-
|
|
529
|
+
t = r.propTypes;
|
|
530
530
|
else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
|
|
531
531
|
// Inner props are checked in the reconciler.
|
|
532
532
|
r.$$typeof === R))
|
|
533
|
-
|
|
533
|
+
t = r.propTypes;
|
|
534
534
|
else
|
|
535
535
|
return;
|
|
536
|
-
if (
|
|
537
|
-
var
|
|
538
|
-
Ve(
|
|
536
|
+
if (t) {
|
|
537
|
+
var o = w(r);
|
|
538
|
+
Ve(t, e.props, "prop", o, e);
|
|
539
539
|
} else if (r.PropTypes !== void 0 && !G) {
|
|
540
540
|
G = !0;
|
|
541
|
-
var s =
|
|
541
|
+
var s = w(r);
|
|
542
542
|
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
|
|
543
543
|
}
|
|
544
544
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function ar(e) {
|
|
548
548
|
{
|
|
549
|
-
for (var r = Object.keys(e.props),
|
|
550
|
-
var
|
|
551
|
-
if (
|
|
552
|
-
k(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
549
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
550
|
+
var o = r[t];
|
|
551
|
+
if (o !== "children" && o !== "key") {
|
|
552
|
+
k(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), k(null);
|
|
553
553
|
break;
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
e.ref !== null && (k(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function we(e, r, t, o, s, c) {
|
|
560
560
|
{
|
|
561
|
-
var i =
|
|
561
|
+
var i = Be(e);
|
|
562
562
|
if (!i) {
|
|
563
|
-
var
|
|
564
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
565
|
-
var
|
|
566
|
-
|
|
563
|
+
var a = "";
|
|
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
|
+
var m = tr(s);
|
|
566
|
+
m ? a += m : a += be();
|
|
567
567
|
var d;
|
|
568
|
-
e === null ? d = "null" : z(e) ? d = "array" : e !== void 0 && e.$$typeof === u ? (d = "<" + (
|
|
568
|
+
e === null ? d = "null" : z(e) ? d = "array" : e !== void 0 && e.$$typeof === u ? (d = "<" + (w(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, p("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);
|
|
569
569
|
}
|
|
570
|
-
var v = rr(e, r,
|
|
570
|
+
var v = rr(e, r, t, s, c);
|
|
571
571
|
if (v == null)
|
|
572
572
|
return v;
|
|
573
573
|
if (i) {
|
|
574
|
-
var
|
|
575
|
-
if (
|
|
576
|
-
if (
|
|
577
|
-
if (z(
|
|
578
|
-
for (var x = 0; x <
|
|
579
|
-
Re(
|
|
580
|
-
Object.freeze && Object.freeze(
|
|
574
|
+
var y = r.children;
|
|
575
|
+
if (y !== void 0)
|
|
576
|
+
if (o)
|
|
577
|
+
if (z(y)) {
|
|
578
|
+
for (var x = 0; x < y.length; x++)
|
|
579
|
+
Re(y[x], e);
|
|
580
|
+
Object.freeze && Object.freeze(y);
|
|
581
581
|
} else
|
|
582
582
|
p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
583
583
|
else
|
|
584
|
-
Re(
|
|
584
|
+
Re(y, e);
|
|
585
585
|
}
|
|
586
|
-
return e === l ?
|
|
586
|
+
return e === l ? ar(v) : or(v), v;
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
function ir(e, r,
|
|
590
|
-
return
|
|
589
|
+
function ir(e, r, t) {
|
|
590
|
+
return we(e, r, t, !0);
|
|
591
591
|
}
|
|
592
|
-
function ur(e, r,
|
|
593
|
-
return
|
|
592
|
+
function ur(e, r, t) {
|
|
593
|
+
return we(e, r, t, !1);
|
|
594
594
|
}
|
|
595
595
|
var lr = ur, sr = ir;
|
|
596
596
|
D.Fragment = l, D.jsx = lr, D.jsxs = sr;
|
|
@@ -611,70 +611,70 @@ function dr() {
|
|
|
611
611
|
if (Pe)
|
|
612
612
|
return I;
|
|
613
613
|
Pe = 1;
|
|
614
|
-
var
|
|
615
|
-
function j(T, h,
|
|
616
|
-
var
|
|
617
|
-
|
|
618
|
-
for (
|
|
619
|
-
l.call(h,
|
|
614
|
+
var n = Oe, u = Symbol.for("react.element"), g = Symbol.for("react.fragment"), l = 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
|
+
function j(T, h, C) {
|
|
616
|
+
var b, R = {}, P = null, M = null;
|
|
617
|
+
C !== void 0 && (P = "" + C), h.key !== void 0 && (P = "" + h.key), h.ref !== void 0 && (M = h.ref);
|
|
618
|
+
for (b in h)
|
|
619
|
+
l.call(h, b) && !E.hasOwnProperty(b) && (R[b] = h[b]);
|
|
620
620
|
if (T && T.defaultProps)
|
|
621
|
-
for (
|
|
622
|
-
R[
|
|
623
|
-
return { $$typeof: u, type: T, key: P, ref:
|
|
621
|
+
for (b in h = T.defaultProps, h)
|
|
622
|
+
R[b] === void 0 && (R[b] = h[b]);
|
|
623
|
+
return { $$typeof: u, type: T, key: P, ref: M, props: R, _owner: f.current };
|
|
624
624
|
}
|
|
625
625
|
return I.Fragment = g, I.jsx = j, I.jsxs = j, I;
|
|
626
626
|
}
|
|
627
627
|
process.env.NODE_ENV === "production" ? Z.exports = dr() : Z.exports = fr();
|
|
628
628
|
var vr = Z.exports;
|
|
629
|
-
function gr(
|
|
630
|
-
return
|
|
629
|
+
function gr(n) {
|
|
630
|
+
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
631
631
|
}
|
|
632
|
-
var hr = function(
|
|
632
|
+
var hr = function(n, u, g) {
|
|
633
633
|
var l = document.head || document.getElementsByTagName("head")[0], f = document.createElement("script");
|
|
634
634
|
typeof u == "function" && (g = u, u = {}), u = u || {}, g = g || function() {
|
|
635
|
-
}, f.type = u.type || "text/javascript", f.charset = u.charset || "utf8", f.async = "async" in u ? !!u.async : !0, f.src =
|
|
636
|
-
var
|
|
637
|
-
|
|
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
|
+
var E = "onload" in f ? Se : mr;
|
|
637
|
+
E(f, g), f.onload || Se(f, g), l.appendChild(f);
|
|
638
638
|
};
|
|
639
|
-
function pr(
|
|
639
|
+
function pr(n, u) {
|
|
640
640
|
for (var g in u)
|
|
641
|
-
|
|
641
|
+
n.setAttribute(g, u[g]);
|
|
642
642
|
}
|
|
643
|
-
function Se(
|
|
644
|
-
|
|
645
|
-
this.onerror = this.onload = null, u(null,
|
|
646
|
-
},
|
|
647
|
-
this.onerror = this.onload = null, u(new Error("Failed to load " + this.src),
|
|
643
|
+
function Se(n, u) {
|
|
644
|
+
n.onload = function() {
|
|
645
|
+
this.onerror = this.onload = null, u(null, n);
|
|
646
|
+
}, n.onerror = function() {
|
|
647
|
+
this.onerror = this.onload = null, u(new Error("Failed to load " + this.src), n);
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
|
|
652
|
-
this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, u(null,
|
|
650
|
+
function mr(n, u) {
|
|
651
|
+
n.onreadystatechange = function() {
|
|
652
|
+
this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, u(null, n));
|
|
653
653
|
};
|
|
654
654
|
}
|
|
655
|
-
const
|
|
656
|
-
function
|
|
657
|
-
switch (
|
|
655
|
+
const br = /* @__PURE__ */ gr(hr), yr = "https://d5aoblv5p04cg.cloudfront.net/editor-3/loader/build.js", Er = "https://d5aoblv5p04cg.cloudfront.net/develop/loader/build.js", Rr = "https://d5aoblv5p04cg.cloudfront.net/staging/loader/build.js";
|
|
656
|
+
function wr(n = "production") {
|
|
657
|
+
switch (n) {
|
|
658
658
|
case "dev":
|
|
659
|
-
return
|
|
659
|
+
return Er;
|
|
660
660
|
case "staging":
|
|
661
661
|
return Rr;
|
|
662
662
|
default:
|
|
663
|
-
return
|
|
663
|
+
return yr;
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
|
-
const
|
|
667
|
-
init: (
|
|
668
|
-
const f =
|
|
669
|
-
|
|
670
|
-
|
|
666
|
+
const Ce = {
|
|
667
|
+
init: (n, u) => new Promise((g, l) => {
|
|
668
|
+
const f = wr(u == null ? void 0 : u.stage);
|
|
669
|
+
br(f, (E) => {
|
|
670
|
+
E !== null && l(E), window.TopolPlugin.init(n), g(!0);
|
|
671
671
|
});
|
|
672
672
|
}),
|
|
673
673
|
save: () => {
|
|
674
674
|
window.TopolPlugin.save();
|
|
675
675
|
},
|
|
676
|
-
load: (
|
|
677
|
-
window.TopolPlugin.load(
|
|
676
|
+
load: (n) => {
|
|
677
|
+
window.TopolPlugin.load(n);
|
|
678
678
|
},
|
|
679
679
|
togglePreview: () => {
|
|
680
680
|
window.TopolPlugin.togglePreview();
|
|
@@ -682,8 +682,8 @@ const Oe = {
|
|
|
682
682
|
togglePreviewSize: () => {
|
|
683
683
|
window.TopolPlugin.togglePreviewSize();
|
|
684
684
|
},
|
|
685
|
-
chooseFile: (
|
|
686
|
-
window.TopolPlugin.chooseFile(
|
|
685
|
+
chooseFile: (n) => {
|
|
686
|
+
window.TopolPlugin.chooseFile(n);
|
|
687
687
|
},
|
|
688
688
|
undo: () => {
|
|
689
689
|
window.TopolPlugin.undo();
|
|
@@ -691,11 +691,11 @@ const Oe = {
|
|
|
691
691
|
redo: () => {
|
|
692
692
|
window.TopolPlugin.redo();
|
|
693
693
|
},
|
|
694
|
-
setSavedBlocks: (
|
|
695
|
-
window.TopolPlugin.setSavedBlocks(
|
|
694
|
+
setSavedBlocks: (n) => {
|
|
695
|
+
window.TopolPlugin.setSavedBlocks(n);
|
|
696
696
|
},
|
|
697
|
-
createNotification: (
|
|
698
|
-
window.TopolPlugin.createNotification(
|
|
697
|
+
createNotification: (n) => {
|
|
698
|
+
window.TopolPlugin.createNotification(n);
|
|
699
699
|
},
|
|
700
700
|
changeEmailToMobile: () => {
|
|
701
701
|
window.TopolPlugin.changeEmailToMobile();
|
|
@@ -708,63 +708,78 @@ const Oe = {
|
|
|
708
708
|
},
|
|
709
709
|
destroy: () => {
|
|
710
710
|
window.TopolPlugin.destroy();
|
|
711
|
+
},
|
|
712
|
+
setPreviewHTML: (n) => {
|
|
713
|
+
window.TopolPlugin.setPreviewHTML(n);
|
|
714
|
+
},
|
|
715
|
+
setActiveMembers: (n) => {
|
|
716
|
+
window.TopolPlugin.setActiveMembers(n);
|
|
717
|
+
},
|
|
718
|
+
updateCustomBlockContent: (n) => {
|
|
719
|
+
window.TopolPlugin.updateCustomBlockContent(n);
|
|
711
720
|
}
|
|
712
|
-
},
|
|
721
|
+
}, _r = "editor";
|
|
713
722
|
let K = !1, X = !1;
|
|
714
|
-
function Pr(
|
|
723
|
+
function Pr(n) {
|
|
715
724
|
const u = () => {
|
|
716
725
|
const g = {
|
|
717
726
|
onSave(l, f) {
|
|
718
|
-
|
|
727
|
+
n.onSave !== void 0 && n.onSave(l, f);
|
|
719
728
|
},
|
|
720
729
|
onSaveAndClose(l, f) {
|
|
721
|
-
|
|
730
|
+
n.onSaveAndClose !== void 0 && n.onSaveAndClose(l, f);
|
|
722
731
|
},
|
|
723
|
-
onTestSend(l, f,
|
|
724
|
-
|
|
732
|
+
onTestSend(l, f, E) {
|
|
733
|
+
n.onTestSend !== void 0 && n.onTestSend(l, f, E);
|
|
725
734
|
},
|
|
726
735
|
onOpenFileManager() {
|
|
727
|
-
|
|
736
|
+
n.onOpenFileManager !== void 0 && n.onOpenFileManager();
|
|
728
737
|
},
|
|
729
738
|
onLoaded() {
|
|
730
|
-
|
|
739
|
+
n.onLoaded !== void 0 && n.onLoaded();
|
|
731
740
|
},
|
|
732
741
|
onBlockSave(l) {
|
|
733
|
-
|
|
742
|
+
n.onBlockSave !== void 0 && n.onBlockSave(l);
|
|
734
743
|
},
|
|
735
744
|
onBlockRemove(l) {
|
|
736
|
-
|
|
745
|
+
n.onBlockRemove !== void 0 && n.onBlockRemove(l);
|
|
737
746
|
},
|
|
738
747
|
onBlockEdit(l) {
|
|
739
|
-
|
|
748
|
+
n.onBlockEdit !== void 0 && n.onBlockEdit(l);
|
|
740
749
|
},
|
|
741
750
|
onInit() {
|
|
742
|
-
|
|
751
|
+
n.onInit !== void 0 && n.onInit(), K = !1, X = !0;
|
|
743
752
|
},
|
|
744
753
|
onUndoChange(l) {
|
|
745
|
-
|
|
754
|
+
n.onUndoChange !== void 0 && n.onUndoChange(l);
|
|
746
755
|
},
|
|
747
756
|
onRedoChange(l) {
|
|
748
|
-
|
|
757
|
+
n.onRedoChange !== void 0 && n.onRedoChange(l);
|
|
749
758
|
},
|
|
750
759
|
onPreview(l) {
|
|
751
|
-
|
|
760
|
+
n.onPreview !== void 0 && n.onPreview(l);
|
|
752
761
|
},
|
|
753
762
|
onAlert(l) {
|
|
754
|
-
|
|
763
|
+
n.onAlert !== void 0 && n.onAlert(l);
|
|
755
764
|
}
|
|
756
765
|
};
|
|
757
|
-
return { id: "#" +
|
|
766
|
+
return { id: "#" + _r, ...n.options, callbacks: { ...g } };
|
|
758
767
|
};
|
|
759
768
|
return cr(() => (K || (async () => {
|
|
760
769
|
K = !0;
|
|
761
770
|
const l = u();
|
|
762
|
-
await
|
|
771
|
+
await Ce.init(l, { stage: n.stage || "production" });
|
|
763
772
|
})(), () => {
|
|
764
|
-
X && (
|
|
765
|
-
}), []), /* @__PURE__ */ vr.jsx(
|
|
773
|
+
X && (Ce.destroy(), X = !1);
|
|
774
|
+
}), []), /* @__PURE__ */ vr.jsx(
|
|
775
|
+
"div",
|
|
776
|
+
{
|
|
777
|
+
id: "editor",
|
|
778
|
+
style: { position: "absolute", height: "100vh", width: "100%" }
|
|
779
|
+
}
|
|
780
|
+
);
|
|
766
781
|
}
|
|
767
782
|
export {
|
|
768
|
-
|
|
783
|
+
Ce as TopolPlugin,
|
|
769
784
|
Pr as default
|
|
770
785
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
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:{}},F={};/**
|
|
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
|
|
10
|
-
`+H+e}}var K=!1,Y;{var
|
|
9
|
+
*/var te;function je(){return te||(te=1,process.env.NODE_ENV!=="production"&&function(){var n=P,u=Symbol.for("react.element"),g=Symbol.for("react.portal"),l=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"),b=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(i){return String(i)});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===l||e===E||Xe||e===f||e===k||e===b||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 l:return"Fragment";case g:return"Portal";case E:return"Profiler";case f:return"StrictMode";case k:return"Suspense";case b: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,i=s._init;try{return _(i(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 i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(w){o=w}Reflect.construct(e,[],i)}else{try{i.call()}catch(w){o=w}e.call(i.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
11
|
`),y=o.stack.split(`
|
|
12
|
-
`),d=a.length-1,v=y.length-1;d>=1&&v>=0&&a[d]!==y[v];)v--;for(;d>=1&&v>=0;d--,v--)if(a[d]!==y[v]){if(d!==1||v!==1)do if(d--,v--,v<0||a[d]!==y[v]){var
|
|
13
|
-
`+a[d].replace(" at new "," at ");return e.displayName&&
|
|
12
|
+
`),d=a.length-1,v=y.length-1;d>=1&&v>=0&&a[d]!==y[v];)v--;for(;d>=1&&v>=0;d--,v--)if(a[d]!==y[v]){if(d!==1||v!==1)do if(d--,v--,v<0||a[d]!==y[v]){var m=`
|
|
13
|
+
`+a[d].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),typeof e=="function"&&Y.set(e,m),m}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 b: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,ye={},be=j.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}function ar(e,r,t,o,s){{var c=Function.call.bind(U);for(var i in e)if(c(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var y=Error((o||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}a=e[i](r,i,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,i,typeof a),V(null)),a instanceof Error&&!(a.message in ye)&&(ye[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 me(e),!1}catch{return!0}}function me(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)),me(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,i){var a={$$typeof:u,type:e,key:r,ref:t,props:i,_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,i={},a=null,y=null;t!==void 0&&(Ee(t),a=""+t),fr(r)&&(Ee(r.key),a=""+r.key),cr(r)&&(y=r.ref,dr(r,s));for(c in r)U.call(r,c)&&!sr.hasOwnProperty(c)&&(i[c]=r[c]);if(e&&e.defaultProps){var d=e.defaultProps;for(c in d)i[c]===void 0&&(i[c]=d[c])}if(a||y){var v=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&vr(i,v),y&&gr(i,v)}return pr(e,a,y,s,o,B.current,i)}}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===u}function Te(){{if(Q.current){var e=_(Q.current.type);if(e)return`
|
|
14
14
|
|
|
15
|
-
Check the render method of \``+e+"`."}return""}}function yr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),
|
|
15
|
+
Check the render method of \``+e+"`."}return""}}function yr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
16
16
|
|
|
17
|
-
Check your code at `+r+":"+
|
|
17
|
+
Check your code at `+r+":"+t+"."}return""}}var Pe={};function br(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 <`+
|
|
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=br(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),i;!(i=c.next()).done;)re(i.value)&&Se(i.value,r)}}}function mr(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 i=Ze(e);if(!i){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 y=yr(s);y?a+=y:a+=Te();var d;e===null?d="null":X(e)?d="array":e!==void 0&&e.$$typeof===u?(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(i){var m=r.children;if(m!==void 0)if(o)if(X(m)){for(var A=0;A<m.length;A++)Ce(m[A],e);Object.freeze&&Object.freeze(m)}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(m,e)}return e===l?Er(v):mr(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;F.Fragment=l,F.jsx=wr,F.jsxs=Tr}()),F}var D={};/**
|
|
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 <`+n+">.")}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
|
|
27
|
+
*/var ne;function xe(){if(ne)return D;ne=1;var n=P,u=Symbol.for("react.element"),g=Symbol.for("react.fragment"),l=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 b,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(b in p)l.call(p,b)&&!E.hasOwnProperty(b)&&(R[b]=p[b]);if(S&&S.defaultProps)for(b in p=S.defaultProps,p)R[b]===void 0&&(R[b]=p[b]);return{$$typeof:u,type:S,key:C,ref:L,props:R,_owner:f.current}}return D.Fragment=g,D.jsx=I,D.jsxs=I,D}process.env.NODE_ENV==="production"?$.exports=xe():$.exports=je();var Ae=$.exports;function Fe(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var De=function(n,u,g){var l=document.head||document.getElementsByTagName("head")[0],f=document.createElement("script");typeof u=="function"&&(g=u,u={}),u=u||{},g=g||function(){},f.type=u.type||"text/javascript",f.charset=u.charset||"utf8",f.async="async"in u?!!u.async:!0,f.src=n,u.attrs&&Ie(f,u.attrs),u.text&&(f.text=""+u.text);var E="onload"in f?oe:Me;E(f,g),f.onload||oe(f,g),l.appendChild(f)};function Ie(n,u){for(var g in u)n.setAttribute(g,u[g])}function oe(n,u){n.onload=function(){this.onerror=this.onload=null,u(null,n)},n.onerror=function(){this.onerror=this.onload=null,u(new Error("Failed to load "+this.src),n)}}function Me(n,u){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,u(null,n))}}const Be=Fe(De),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,u)=>new Promise((g,l)=>{const f=Ne(u==null?void 0:u.stage);Be(f,E=>{E!==null&&l(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 u=()=>{const g={onSave(l,f){n.onSave!==void 0&&n.onSave(l,f)},onSaveAndClose(l,f){n.onSaveAndClose!==void 0&&n.onSaveAndClose(l,f)},onTestSend(l,f,E){n.onTestSend!==void 0&&n.onTestSend(l,f,E)},onOpenFileManager(){n.onOpenFileManager!==void 0&&n.onOpenFileManager()},onLoaded(){n.onLoaded!==void 0&&n.onLoaded()},onBlockSave(l){n.onBlockSave!==void 0&&n.onBlockSave(l)},onBlockRemove(l){n.onBlockRemove!==void 0&&n.onBlockRemove(l)},onBlockEdit(l){n.onBlockEdit!==void 0&&n.onBlockEdit(l)},onInit(){n.onInit!==void 0&&n.onInit(),J=!1,q=!0},onUndoChange(l){n.onUndoChange!==void 0&&n.onUndoChange(l)},onRedoChange(l){n.onRedoChange!==void 0&&n.onRedoChange(l)},onPreview(l){n.onPreview!==void 0&&n.onPreview(l)},onAlert(l){n.onAlert!==void 0&&n.onAlert(l)}};return{id:"#"+Ue,...n.options,callbacks:{...g}}};return P.useEffect(()=>(J||(async()=>{J=!0;const l=u();await z.init(l,{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"}})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import TopolPlugin, { INotification, ISavedBlock, IStage } from
|
|
1
|
+
import TopolPlugin, { INotification, ISavedBlock, IStage } from '@topol.io/editor';
|
|
2
2
|
import { IReactTopolOptions } from '../types/IReactTopolOptions';
|
|
3
3
|
type TopolEditorProps = {
|
|
4
4
|
options: IReactTopolOptions;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ITopolOptions } from
|
|
1
|
+
import { ITopolOptions } from '@topol.io/editor';
|
|
2
2
|
export type IReactTopolOptions = Omit<ITopolOptions, 'id'>;
|
package/package.json
CHANGED
|
@@ -11,13 +11,14 @@
|
|
|
11
11
|
"email-react",
|
|
12
12
|
"email templates"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.
|
|
14
|
+
"version": "0.0.1",
|
|
15
15
|
"author": "Topol.io",
|
|
16
16
|
"homepage": "https://topol.io",
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"files": [
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
|
+
"type": "module",
|
|
21
22
|
"main": "./dist/topol-editor-react.es.js",
|
|
22
23
|
"module": "./dist/topol-editor-react.es.js",
|
|
23
24
|
"types": "./dist/types/src/TopolEditor.d.ts",
|
|
@@ -28,13 +29,8 @@
|
|
|
28
29
|
"types": "./dist/types/src/TopolEditor.d.ts"
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
|
-
"scripts": {
|
|
32
|
-
"dev": "vite",
|
|
33
|
-
"build": "vite build && yarn run build:types",
|
|
34
|
-
"build:types": "tsc -p tsconfig.prod.json"
|
|
35
|
-
},
|
|
36
32
|
"dependencies": {
|
|
37
|
-
"@topol.io/editor": "
|
|
33
|
+
"@topol.io/editor": "0.0.1"
|
|
38
34
|
},
|
|
39
35
|
"devDependencies": {
|
|
40
36
|
"@types/node": "^20.7.0",
|
|
@@ -48,5 +44,10 @@
|
|
|
48
44
|
},
|
|
49
45
|
"publishConfig": {
|
|
50
46
|
"access": "public"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"dev": "vite",
|
|
50
|
+
"build": "vite build && pnpm run build:types",
|
|
51
|
+
"build:types": "tsc -p tsconfig.prod.json"
|
|
51
52
|
}
|
|
52
|
-
}
|
|
53
|
+
}
|