@topol.io/editor-react 0.0.4 → 0.2.0

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