@object-ui/plugin-editor 0.3.0 → 0.3.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,657 +0,0 @@
1
- import Z, { Suspense as dr } from "react";
2
- import { ComponentRegistry as vr } from "@object-ui/core";
3
- import { Skeleton as pr } from "@object-ui/components";
4
- var N = { exports: {} }, F = {};
5
- var Ce;
6
- function gr() {
7
- if (Ce) return F;
8
- Ce = 1;
9
- var y = Z, b = /* @__PURE__ */ Symbol.for("react.element"), w = /* @__PURE__ */ Symbol.for("react.fragment"), O = Object.prototype.hasOwnProperty, I = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, W = { key: !0, ref: !0, __self: !0, __source: !0 };
10
- function x(E, f, C) {
11
- var p, h = {}, R = null, Y = null;
12
- C !== void 0 && (R = "" + C), f.key !== void 0 && (R = "" + f.key), f.ref !== void 0 && (Y = f.ref);
13
- for (p in f) O.call(f, p) && !W.hasOwnProperty(p) && (h[p] = f[p]);
14
- if (E && E.defaultProps) for (p in f = E.defaultProps, f) h[p] === void 0 && (h[p] = f[p]);
15
- return { $$typeof: b, type: E, key: R, ref: Y, props: h, _owner: I.current };
16
- }
17
- return F.Fragment = w, F.jsx = x, F.jsxs = x, F;
18
- }
19
- var A = {};
20
- var Se;
21
- function yr() {
22
- return Se || (Se = 1, process.env.NODE_ENV !== "production" && (function() {
23
- var y = Z, b = /* @__PURE__ */ Symbol.for("react.element"), w = /* @__PURE__ */ Symbol.for("react.portal"), O = /* @__PURE__ */ Symbol.for("react.fragment"), I = /* @__PURE__ */ Symbol.for("react.strict_mode"), W = /* @__PURE__ */ Symbol.for("react.profiler"), x = /* @__PURE__ */ Symbol.for("react.provider"), E = /* @__PURE__ */ Symbol.for("react.context"), f = /* @__PURE__ */ Symbol.for("react.forward_ref"), C = /* @__PURE__ */ Symbol.for("react.suspense"), p = /* @__PURE__ */ Symbol.for("react.suspense_list"), h = /* @__PURE__ */ Symbol.for("react.memo"), R = /* @__PURE__ */ Symbol.for("react.lazy"), Y = /* @__PURE__ */ Symbol.for("react.offscreen"), Q = Symbol.iterator, we = "@@iterator";
24
- function xe(e) {
25
- if (e === null || typeof e != "object")
26
- return null;
27
- var r = Q && e[Q] || e[we];
28
- return typeof r == "function" ? r : null;
29
- }
30
- var S = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
31
- function c(e) {
32
- {
33
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
34
- t[n - 1] = arguments[n];
35
- ke("error", e, t);
36
- }
37
- }
38
- function ke(e, r, t) {
39
- {
40
- var n = S.ReactDebugCurrentFrame, i = n.getStackAddendum();
41
- i !== "" && (r += "%s", t = t.concat([i]));
42
- var u = t.map(function(o) {
43
- return String(o);
44
- });
45
- u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
46
- }
47
- }
48
- var De = !1, Fe = !1, Ae = !1, Ie = !1, We = !1, ee;
49
- ee = /* @__PURE__ */ Symbol.for("react.module.reference");
50
- function Ye(e) {
51
- return !!(typeof e == "string" || typeof e == "function" || e === O || e === W || We || e === I || e === C || e === p || Ie || e === Y || De || Fe || Ae || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === h || e.$$typeof === x || e.$$typeof === E || e.$$typeof === f || // This needs to include all possible module reference object
52
- // types supported by any Flight configuration anywhere since
53
- // we don't know which Flight build this will end up being used
54
- // with.
55
- e.$$typeof === ee || e.getModuleId !== void 0));
56
- }
57
- function $e(e, r, t) {
58
- var n = e.displayName;
59
- if (n)
60
- return n;
61
- var i = r.displayName || r.name || "";
62
- return i !== "" ? t + "(" + i + ")" : t;
63
- }
64
- function re(e) {
65
- return e.displayName || "Context";
66
- }
67
- function m(e) {
68
- if (e == null)
69
- return null;
70
- if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
71
- return e.displayName || e.name || null;
72
- if (typeof e == "string")
73
- return e;
74
- switch (e) {
75
- case O:
76
- return "Fragment";
77
- case w:
78
- return "Portal";
79
- case W:
80
- return "Profiler";
81
- case I:
82
- return "StrictMode";
83
- case C:
84
- return "Suspense";
85
- case p:
86
- return "SuspenseList";
87
- }
88
- if (typeof e == "object")
89
- switch (e.$$typeof) {
90
- case E:
91
- var r = e;
92
- return re(r) + ".Consumer";
93
- case x:
94
- var t = e;
95
- return re(t._context) + ".Provider";
96
- case f:
97
- return $e(e, e.render, "ForwardRef");
98
- case h:
99
- var n = e.displayName || null;
100
- return n !== null ? n : m(e.type) || "Memo";
101
- case R: {
102
- var i = e, u = i._payload, o = i._init;
103
- try {
104
- return m(o(u));
105
- } catch {
106
- return null;
107
- }
108
- }
109
- }
110
- return null;
111
- }
112
- var _ = Object.assign, k = 0, te, ne, ae, oe, ie, ue, le;
113
- function se() {
114
- }
115
- se.__reactDisabledLog = !0;
116
- function Ve() {
117
- {
118
- if (k === 0) {
119
- te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, ue = console.groupCollapsed, le = console.groupEnd;
120
- var e = {
121
- configurable: !0,
122
- enumerable: !0,
123
- value: se,
124
- writable: !0
125
- };
126
- Object.defineProperties(console, {
127
- info: e,
128
- log: e,
129
- warn: e,
130
- error: e,
131
- group: e,
132
- groupCollapsed: e,
133
- groupEnd: e
134
- });
135
- }
136
- k++;
137
- }
138
- }
139
- function Le() {
140
- {
141
- if (k--, k === 0) {
142
- var e = {
143
- configurable: !0,
144
- enumerable: !0,
145
- writable: !0
146
- };
147
- Object.defineProperties(console, {
148
- log: _({}, e, {
149
- value: te
150
- }),
151
- info: _({}, e, {
152
- value: ne
153
- }),
154
- warn: _({}, e, {
155
- value: ae
156
- }),
157
- error: _({}, e, {
158
- value: oe
159
- }),
160
- group: _({}, e, {
161
- value: ie
162
- }),
163
- groupCollapsed: _({}, e, {
164
- value: ue
165
- }),
166
- groupEnd: _({}, e, {
167
- value: le
168
- })
169
- });
170
- }
171
- k < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
172
- }
173
- }
174
- var U = S.ReactCurrentDispatcher, J;
175
- function $(e, r, t) {
176
- {
177
- if (J === void 0)
178
- try {
179
- throw Error();
180
- } catch (i) {
181
- var n = i.stack.trim().match(/\n( *(at )?)/);
182
- J = n && n[1] || "";
183
- }
184
- return `
185
- ` + J + e;
186
- }
187
- }
188
- var q = !1, V;
189
- {
190
- var Me = typeof WeakMap == "function" ? WeakMap : Map;
191
- V = new Me();
192
- }
193
- function fe(e, r) {
194
- if (!e || q)
195
- return "";
196
- {
197
- var t = V.get(e);
198
- if (t !== void 0)
199
- return t;
200
- }
201
- var n;
202
- q = !0;
203
- var i = Error.prepareStackTrace;
204
- Error.prepareStackTrace = void 0;
205
- var u;
206
- u = U.current, U.current = null, Ve();
207
- try {
208
- if (r) {
209
- var o = function() {
210
- throw Error();
211
- };
212
- if (Object.defineProperty(o.prototype, "props", {
213
- set: function() {
214
- throw Error();
215
- }
216
- }), typeof Reflect == "object" && Reflect.construct) {
217
- try {
218
- Reflect.construct(o, []);
219
- } catch (v) {
220
- n = v;
221
- }
222
- Reflect.construct(e, [], o);
223
- } else {
224
- try {
225
- o.call();
226
- } catch (v) {
227
- n = v;
228
- }
229
- e.call(o.prototype);
230
- }
231
- } else {
232
- try {
233
- throw Error();
234
- } catch (v) {
235
- n = v;
236
- }
237
- e();
238
- }
239
- } catch (v) {
240
- if (v && n && typeof v.stack == "string") {
241
- for (var a = v.stack.split(`
242
- `), d = n.stack.split(`
243
- `), l = a.length - 1, s = d.length - 1; l >= 1 && s >= 0 && a[l] !== d[s]; )
244
- s--;
245
- for (; l >= 1 && s >= 0; l--, s--)
246
- if (a[l] !== d[s]) {
247
- if (l !== 1 || s !== 1)
248
- do
249
- if (l--, s--, s < 0 || a[l] !== d[s]) {
250
- var g = `
251
- ` + a[l].replace(" at new ", " at ");
252
- return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, g), g;
253
- }
254
- while (l >= 1 && s >= 0);
255
- break;
256
- }
257
- }
258
- } finally {
259
- q = !1, U.current = u, Le(), Error.prepareStackTrace = i;
260
- }
261
- var j = e ? e.displayName || e.name : "", T = j ? $(j) : "";
262
- return typeof e == "function" && V.set(e, T), T;
263
- }
264
- function Ne(e, r, t) {
265
- return fe(e, !1);
266
- }
267
- function Ue(e) {
268
- var r = e.prototype;
269
- return !!(r && r.isReactComponent);
270
- }
271
- function L(e, r, t) {
272
- if (e == null)
273
- return "";
274
- if (typeof e == "function")
275
- return fe(e, Ue(e));
276
- if (typeof e == "string")
277
- return $(e);
278
- switch (e) {
279
- case C:
280
- return $("Suspense");
281
- case p:
282
- return $("SuspenseList");
283
- }
284
- if (typeof e == "object")
285
- switch (e.$$typeof) {
286
- case f:
287
- return Ne(e.render);
288
- case h:
289
- return L(e.type, r, t);
290
- case R: {
291
- var n = e, i = n._payload, u = n._init;
292
- try {
293
- return L(u(i), r, t);
294
- } catch {
295
- }
296
- }
297
- }
298
- return "";
299
- }
300
- var D = Object.prototype.hasOwnProperty, ce = {}, de = S.ReactDebugCurrentFrame;
301
- function M(e) {
302
- if (e) {
303
- var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
304
- de.setExtraStackFrame(t);
305
- } else
306
- de.setExtraStackFrame(null);
307
- }
308
- function Je(e, r, t, n, i) {
309
- {
310
- var u = Function.call.bind(D);
311
- for (var o in e)
312
- if (u(e, o)) {
313
- var a = void 0;
314
- try {
315
- if (typeof e[o] != "function") {
316
- var d = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
317
- throw d.name = "Invariant Violation", d;
318
- }
319
- a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
320
- } catch (l) {
321
- a = l;
322
- }
323
- a && !(a instanceof Error) && (M(i), c("%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).", n || "React class", t, o, typeof a), M(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, M(i), c("Failed %s type: %s", t, a.message), M(null));
324
- }
325
- }
326
- }
327
- var qe = Array.isArray;
328
- function B(e) {
329
- return qe(e);
330
- }
331
- function Be(e) {
332
- {
333
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
334
- return t;
335
- }
336
- }
337
- function Ke(e) {
338
- try {
339
- return ve(e), !1;
340
- } catch {
341
- return !0;
342
- }
343
- }
344
- function ve(e) {
345
- return "" + e;
346
- }
347
- function pe(e) {
348
- if (Ke(e))
349
- return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), ve(e);
350
- }
351
- var ge = S.ReactCurrentOwner, ze = {
352
- key: !0,
353
- ref: !0,
354
- __self: !0,
355
- __source: !0
356
- }, ye, he;
357
- function Ge(e) {
358
- if (D.call(e, "ref")) {
359
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
360
- if (r && r.isReactWarning)
361
- return !1;
362
- }
363
- return e.ref !== void 0;
364
- }
365
- function He(e) {
366
- if (D.call(e, "key")) {
367
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
368
- if (r && r.isReactWarning)
369
- return !1;
370
- }
371
- return e.key !== void 0;
372
- }
373
- function Xe(e, r) {
374
- typeof e.ref == "string" && ge.current;
375
- }
376
- function Ze(e, r) {
377
- {
378
- var t = function() {
379
- ye || (ye = !0, c("%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));
380
- };
381
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
382
- get: t,
383
- configurable: !0
384
- });
385
- }
386
- }
387
- function Qe(e, r) {
388
- {
389
- var t = function() {
390
- he || (he = !0, c("%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));
391
- };
392
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
393
- get: t,
394
- configurable: !0
395
- });
396
- }
397
- }
398
- var er = function(e, r, t, n, i, u, o) {
399
- var a = {
400
- // This tag allows us to uniquely identify this as a React Element
401
- $$typeof: b,
402
- // Built-in properties that belong on the element
403
- type: e,
404
- key: r,
405
- ref: t,
406
- props: o,
407
- // Record the component responsible for creating this element.
408
- _owner: u
409
- };
410
- return a._store = {}, Object.defineProperty(a._store, "validated", {
411
- configurable: !1,
412
- enumerable: !1,
413
- writable: !0,
414
- value: !1
415
- }), Object.defineProperty(a, "_self", {
416
- configurable: !1,
417
- enumerable: !1,
418
- writable: !1,
419
- value: n
420
- }), Object.defineProperty(a, "_source", {
421
- configurable: !1,
422
- enumerable: !1,
423
- writable: !1,
424
- value: i
425
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
426
- };
427
- function rr(e, r, t, n, i) {
428
- {
429
- var u, o = {}, a = null, d = null;
430
- t !== void 0 && (pe(t), a = "" + t), He(r) && (pe(r.key), a = "" + r.key), Ge(r) && (d = r.ref, Xe(r, i));
431
- for (u in r)
432
- D.call(r, u) && !ze.hasOwnProperty(u) && (o[u] = r[u]);
433
- if (e && e.defaultProps) {
434
- var l = e.defaultProps;
435
- for (u in l)
436
- o[u] === void 0 && (o[u] = l[u]);
437
- }
438
- if (a || d) {
439
- var s = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
440
- a && Ze(o, s), d && Qe(o, s);
441
- }
442
- return er(e, a, d, i, n, ge.current, o);
443
- }
444
- }
445
- var K = S.ReactCurrentOwner, me = S.ReactDebugCurrentFrame;
446
- function P(e) {
447
- if (e) {
448
- var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
449
- me.setExtraStackFrame(t);
450
- } else
451
- me.setExtraStackFrame(null);
452
- }
453
- var z;
454
- z = !1;
455
- function G(e) {
456
- return typeof e == "object" && e !== null && e.$$typeof === b;
457
- }
458
- function be() {
459
- {
460
- if (K.current) {
461
- var e = m(K.current.type);
462
- if (e)
463
- return `
464
-
465
- Check the render method of \`` + e + "`.";
466
- }
467
- return "";
468
- }
469
- }
470
- function tr(e) {
471
- return "";
472
- }
473
- var Ee = {};
474
- function nr(e) {
475
- {
476
- var r = be();
477
- if (!r) {
478
- var t = typeof e == "string" ? e : e.displayName || e.name;
479
- t && (r = `
480
-
481
- Check the top-level render call using <` + t + ">.");
482
- }
483
- return r;
484
- }
485
- }
486
- function Re(e, r) {
487
- {
488
- if (!e._store || e._store.validated || e.key != null)
489
- return;
490
- e._store.validated = !0;
491
- var t = nr(r);
492
- if (Ee[t])
493
- return;
494
- Ee[t] = !0;
495
- var n = "";
496
- e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + m(e._owner.type) + "."), P(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), P(null);
497
- }
498
- }
499
- function _e(e, r) {
500
- {
501
- if (typeof e != "object")
502
- return;
503
- if (B(e))
504
- for (var t = 0; t < e.length; t++) {
505
- var n = e[t];
506
- G(n) && Re(n, r);
507
- }
508
- else if (G(e))
509
- e._store && (e._store.validated = !0);
510
- else if (e) {
511
- var i = xe(e);
512
- if (typeof i == "function" && i !== e.entries)
513
- for (var u = i.call(e), o; !(o = u.next()).done; )
514
- G(o.value) && Re(o.value, r);
515
- }
516
- }
517
- }
518
- function ar(e) {
519
- {
520
- var r = e.type;
521
- if (r == null || typeof r == "string")
522
- return;
523
- var t;
524
- if (typeof r == "function")
525
- t = r.propTypes;
526
- else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
527
- // Inner props are checked in the reconciler.
528
- r.$$typeof === h))
529
- t = r.propTypes;
530
- else
531
- return;
532
- if (t) {
533
- var n = m(r);
534
- Je(t, e.props, "prop", n, e);
535
- } else if (r.PropTypes !== void 0 && !z) {
536
- z = !0;
537
- var i = m(r);
538
- c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
539
- }
540
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
541
- }
542
- }
543
- function or(e) {
544
- {
545
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
546
- var n = r[t];
547
- if (n !== "children" && n !== "key") {
548
- P(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), P(null);
549
- break;
550
- }
551
- }
552
- e.ref !== null && (P(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
553
- }
554
- }
555
- var Te = {};
556
- function Oe(e, r, t, n, i, u) {
557
- {
558
- var o = Ye(e);
559
- if (!o) {
560
- var a = "";
561
- (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.");
562
- var d = tr();
563
- d ? a += d : a += be();
564
- var l;
565
- e === null ? l = "null" : B(e) ? l = "array" : e !== void 0 && e.$$typeof === b ? (l = "<" + (m(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
566
- }
567
- var s = rr(e, r, t, i, u);
568
- if (s == null)
569
- return s;
570
- if (o) {
571
- var g = r.children;
572
- if (g !== void 0)
573
- if (n)
574
- if (B(g)) {
575
- for (var j = 0; j < g.length; j++)
576
- _e(g[j], e);
577
- Object.freeze && Object.freeze(g);
578
- } else
579
- c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
580
- else
581
- _e(g, e);
582
- }
583
- if (D.call(r, "key")) {
584
- var T = m(e), v = Object.keys(r).filter(function(cr) {
585
- return cr !== "key";
586
- }), H = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
587
- if (!Te[T + H]) {
588
- var fr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
589
- c(`A props object containing a "key" prop is being spread into JSX:
590
- let props = %s;
591
- <%s {...props} />
592
- React keys must be passed directly to JSX without using spread:
593
- let props = %s;
594
- <%s key={someKey} {...props} />`, H, T, fr, T), Te[T + H] = !0;
595
- }
596
- }
597
- return e === O ? or(s) : ar(s), s;
598
- }
599
- }
600
- function ir(e, r, t) {
601
- return Oe(e, r, t, !0);
602
- }
603
- function ur(e, r, t) {
604
- return Oe(e, r, t, !1);
605
- }
606
- var lr = ur, sr = ir;
607
- A.Fragment = O, A.jsx = lr, A.jsxs = sr;
608
- })()), A;
609
- }
610
- var Pe;
611
- function hr() {
612
- return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? N.exports = gr() : N.exports = yr()), N.exports;
613
- }
614
- var X = hr();
615
- const mr = Z.lazy(() => import("./MonacoImpl-BSiaJCGx.js")), je = ({ schema: y, value: b, onChange: w }) => /* @__PURE__ */ X.jsx(dr, { fallback: /* @__PURE__ */ X.jsx(pr, { className: "w-full h-[400px]" }), children: /* @__PURE__ */ X.jsx(
616
- mr,
617
- {
618
- value: b ?? y.value,
619
- language: y.language,
620
- theme: y.theme,
621
- height: y.height,
622
- onChange: w ?? y.onChange,
623
- readOnly: y.readOnly,
624
- className: y.className
625
- }
626
- ) });
627
- vr.register(
628
- "code-editor",
629
- je,
630
- {
631
- label: "Code Editor",
632
- category: "plugin",
633
- inputs: [
634
- { name: "value", type: "string", label: "Code", defaultValue: "" },
635
- { name: "language", type: "enum", label: "Language", enum: ["javascript", "typescript", "python", "json", "html", "css"], defaultValue: "javascript" },
636
- { name: "theme", type: "enum", label: "Theme", enum: ["vs-dark", "light"], defaultValue: "vs-dark" },
637
- { name: "height", type: "string", label: "Height", defaultValue: "400px" },
638
- { name: "readOnly", type: "boolean", label: "Read Only", defaultValue: !1 }
639
- ],
640
- defaultProps: {
641
- value: `// Write your code here
642
- console.log("Hello, World!");`,
643
- language: "javascript",
644
- theme: "vs-dark",
645
- height: "400px",
646
- readOnly: !1
647
- }
648
- }
649
- );
650
- const _r = {
651
- "code-editor": je
652
- };
653
- export {
654
- je as C,
655
- _r as e,
656
- X as j
657
- };