@rs-x/react-components 1.0.2 → 2.0.0-next.10
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.
- package/dist/{chunk-CCEWV2BR.js → chunk-QGM4M3NI.js} +0 -2
- package/dist/{dist-DTEPJKCA.js → dist-RZ7NA73S.js} +10 -82
- package/dist/index.css +16 -0
- package/dist/index.d.ts +4 -18
- package/dist/index.js +5170 -6347
- package/dist/typescript-K4VG3SEY.js +213043 -0
- package/package.json +6 -5
|
@@ -4,7 +4,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
7
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
8
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
9
|
}) : x)(function(x) {
|
|
@@ -32,7 +31,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
31
|
));
|
|
33
32
|
|
|
34
33
|
export {
|
|
35
|
-
__name,
|
|
36
34
|
__require,
|
|
37
35
|
__commonJS,
|
|
38
36
|
__toESM
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
__name
|
|
3
|
-
} from "./chunk-CCEWV2BR.js";
|
|
1
|
+
import "./chunk-QGM4M3NI.js";
|
|
4
2
|
|
|
5
3
|
// ../node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js
|
|
6
4
|
function _arrayLikeToArray(r, a) {
|
|
@@ -8,11 +6,9 @@ function _arrayLikeToArray(r, a) {
|
|
|
8
6
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
9
7
|
return n;
|
|
10
8
|
}
|
|
11
|
-
__name(_arrayLikeToArray, "_arrayLikeToArray");
|
|
12
9
|
function _arrayWithHoles(r) {
|
|
13
10
|
if (Array.isArray(r)) return r;
|
|
14
11
|
}
|
|
15
|
-
__name(_arrayWithHoles, "_arrayWithHoles");
|
|
16
12
|
function _defineProperty(e, r, t) {
|
|
17
13
|
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
18
14
|
value: t,
|
|
@@ -21,7 +17,6 @@ function _defineProperty(e, r, t) {
|
|
|
21
17
|
writable: true
|
|
22
18
|
}) : e[r] = t, e;
|
|
23
19
|
}
|
|
24
|
-
__name(_defineProperty, "_defineProperty");
|
|
25
20
|
function _iterableToArrayLimit(r, l2) {
|
|
26
21
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
27
22
|
if (null != t) {
|
|
@@ -41,11 +36,9 @@ function _iterableToArrayLimit(r, l2) {
|
|
|
41
36
|
return a;
|
|
42
37
|
}
|
|
43
38
|
}
|
|
44
|
-
__name(_iterableToArrayLimit, "_iterableToArrayLimit");
|
|
45
39
|
function _nonIterableRest() {
|
|
46
40
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
47
41
|
}
|
|
48
|
-
__name(_nonIterableRest, "_nonIterableRest");
|
|
49
42
|
function ownKeys(e, r) {
|
|
50
43
|
var t = Object.keys(e);
|
|
51
44
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -56,7 +49,6 @@ function ownKeys(e, r) {
|
|
|
56
49
|
}
|
|
57
50
|
return t;
|
|
58
51
|
}
|
|
59
|
-
__name(ownKeys, "ownKeys");
|
|
60
52
|
function _objectSpread2(e) {
|
|
61
53
|
for (var r = 1; r < arguments.length; r++) {
|
|
62
54
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
@@ -68,7 +60,6 @@ function _objectSpread2(e) {
|
|
|
68
60
|
}
|
|
69
61
|
return e;
|
|
70
62
|
}
|
|
71
|
-
__name(_objectSpread2, "_objectSpread2");
|
|
72
63
|
function _objectWithoutProperties(e, t) {
|
|
73
64
|
if (null == e) return {};
|
|
74
65
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -78,7 +69,6 @@ function _objectWithoutProperties(e, t) {
|
|
|
78
69
|
}
|
|
79
70
|
return i;
|
|
80
71
|
}
|
|
81
|
-
__name(_objectWithoutProperties, "_objectWithoutProperties");
|
|
82
72
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
83
73
|
if (null == r) return {};
|
|
84
74
|
var t = {};
|
|
@@ -88,11 +78,9 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
88
78
|
}
|
|
89
79
|
return t;
|
|
90
80
|
}
|
|
91
|
-
__name(_objectWithoutPropertiesLoose, "_objectWithoutPropertiesLoose");
|
|
92
81
|
function _slicedToArray(r, e) {
|
|
93
82
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
94
83
|
}
|
|
95
|
-
__name(_slicedToArray, "_slicedToArray");
|
|
96
84
|
function _toPrimitive(t, r) {
|
|
97
85
|
if ("object" != typeof t || !t) return t;
|
|
98
86
|
var e = t[Symbol.toPrimitive];
|
|
@@ -103,12 +91,10 @@ function _toPrimitive(t, r) {
|
|
|
103
91
|
}
|
|
104
92
|
return ("string" === r ? String : Number)(t);
|
|
105
93
|
}
|
|
106
|
-
__name(_toPrimitive, "_toPrimitive");
|
|
107
94
|
function _toPropertyKey(t) {
|
|
108
95
|
var i = _toPrimitive(t, "string");
|
|
109
96
|
return "symbol" == typeof i ? i : i + "";
|
|
110
97
|
}
|
|
111
|
-
__name(_toPropertyKey, "_toPropertyKey");
|
|
112
98
|
function _unsupportedIterableToArray(r, a) {
|
|
113
99
|
if (r) {
|
|
114
100
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -116,7 +102,6 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
116
102
|
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
117
103
|
}
|
|
118
104
|
}
|
|
119
|
-
__name(_unsupportedIterableToArray, "_unsupportedIterableToArray");
|
|
120
105
|
|
|
121
106
|
// ../node_modules/state-local/lib/es/state-local.js
|
|
122
107
|
function _defineProperty2(obj, key, value) {
|
|
@@ -132,7 +117,6 @@ function _defineProperty2(obj, key, value) {
|
|
|
132
117
|
}
|
|
133
118
|
return obj;
|
|
134
119
|
}
|
|
135
|
-
__name(_defineProperty2, "_defineProperty");
|
|
136
120
|
function ownKeys2(object, enumerableOnly) {
|
|
137
121
|
var keys = Object.keys(object);
|
|
138
122
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -144,7 +128,6 @@ function ownKeys2(object, enumerableOnly) {
|
|
|
144
128
|
}
|
|
145
129
|
return keys;
|
|
146
130
|
}
|
|
147
|
-
__name(ownKeys2, "ownKeys");
|
|
148
131
|
function _objectSpread22(target) {
|
|
149
132
|
for (var i = 1; i < arguments.length; i++) {
|
|
150
133
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -162,7 +145,6 @@ function _objectSpread22(target) {
|
|
|
162
145
|
}
|
|
163
146
|
return target;
|
|
164
147
|
}
|
|
165
|
-
__name(_objectSpread22, "_objectSpread2");
|
|
166
148
|
function compose() {
|
|
167
149
|
for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
168
150
|
fns[_key] = arguments[_key];
|
|
@@ -173,9 +155,8 @@ function compose() {
|
|
|
173
155
|
}, x);
|
|
174
156
|
};
|
|
175
157
|
}
|
|
176
|
-
__name(compose, "compose");
|
|
177
158
|
function curry(fn) {
|
|
178
|
-
return
|
|
159
|
+
return function curried() {
|
|
179
160
|
var _this = this;
|
|
180
161
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
181
162
|
args[_key2] = arguments[_key2];
|
|
@@ -186,25 +167,20 @@ function curry(fn) {
|
|
|
186
167
|
}
|
|
187
168
|
return curried.apply(_this, [].concat(args, nextArgs));
|
|
188
169
|
};
|
|
189
|
-
}
|
|
170
|
+
};
|
|
190
171
|
}
|
|
191
|
-
__name(curry, "curry");
|
|
192
172
|
function isObject(value) {
|
|
193
173
|
return {}.toString.call(value).includes("Object");
|
|
194
174
|
}
|
|
195
|
-
__name(isObject, "isObject");
|
|
196
175
|
function isEmpty(obj) {
|
|
197
176
|
return !Object.keys(obj).length;
|
|
198
177
|
}
|
|
199
|
-
__name(isEmpty, "isEmpty");
|
|
200
178
|
function isFunction(value) {
|
|
201
179
|
return typeof value === "function";
|
|
202
180
|
}
|
|
203
|
-
__name(isFunction, "isFunction");
|
|
204
181
|
function hasOwnProperty(object, property) {
|
|
205
182
|
return Object.prototype.hasOwnProperty.call(object, property);
|
|
206
183
|
}
|
|
207
|
-
__name(hasOwnProperty, "hasOwnProperty");
|
|
208
184
|
function validateChanges(initial, changes) {
|
|
209
185
|
if (!isObject(changes)) errorHandler("changeType");
|
|
210
186
|
if (Object.keys(changes).some(function(field) {
|
|
@@ -212,28 +188,23 @@ function validateChanges(initial, changes) {
|
|
|
212
188
|
})) errorHandler("changeField");
|
|
213
189
|
return changes;
|
|
214
190
|
}
|
|
215
|
-
__name(validateChanges, "validateChanges");
|
|
216
191
|
function validateSelector(selector) {
|
|
217
192
|
if (!isFunction(selector)) errorHandler("selectorType");
|
|
218
193
|
}
|
|
219
|
-
__name(validateSelector, "validateSelector");
|
|
220
194
|
function validateHandler(handler) {
|
|
221
195
|
if (!(isFunction(handler) || isObject(handler))) errorHandler("handlerType");
|
|
222
196
|
if (isObject(handler) && Object.values(handler).some(function(_handler) {
|
|
223
197
|
return !isFunction(_handler);
|
|
224
198
|
})) errorHandler("handlersType");
|
|
225
199
|
}
|
|
226
|
-
__name(validateHandler, "validateHandler");
|
|
227
200
|
function validateInitial(initial) {
|
|
228
201
|
if (!initial) errorHandler("initialIsRequired");
|
|
229
202
|
if (!isObject(initial)) errorHandler("initialType");
|
|
230
203
|
if (isEmpty(initial)) errorHandler("initialContent");
|
|
231
204
|
}
|
|
232
|
-
__name(validateInitial, "validateInitial");
|
|
233
205
|
function throwError(errorMessages3, type) {
|
|
234
206
|
throw new Error(errorMessages3[type] || errorMessages3["default"]);
|
|
235
207
|
}
|
|
236
|
-
__name(throwError, "throwError");
|
|
237
208
|
var errorMessages = {
|
|
238
209
|
initialIsRequired: "initial state is required",
|
|
239
210
|
initialType: "initial state should be an object",
|
|
@@ -270,26 +241,18 @@ function create(initial) {
|
|
|
270
241
|
validators.selector(selector);
|
|
271
242
|
return selector(state.current);
|
|
272
243
|
}
|
|
273
|
-
__name(getState2, "getState");
|
|
274
244
|
function setState2(causedChanges) {
|
|
275
245
|
compose(didUpdate, update, validate, getChanges)(causedChanges);
|
|
276
246
|
}
|
|
277
|
-
|
|
278
|
-
return [
|
|
279
|
-
getState2,
|
|
280
|
-
setState2
|
|
281
|
-
];
|
|
247
|
+
return [getState2, setState2];
|
|
282
248
|
}
|
|
283
|
-
__name(create, "create");
|
|
284
249
|
function extractChanges(state, causedChanges) {
|
|
285
250
|
return isFunction(causedChanges) ? causedChanges(state.current) : causedChanges;
|
|
286
251
|
}
|
|
287
|
-
__name(extractChanges, "extractChanges");
|
|
288
252
|
function updateState(state, changes) {
|
|
289
253
|
state.current = _objectSpread22(_objectSpread22({}, state.current), changes);
|
|
290
254
|
return changes;
|
|
291
255
|
}
|
|
292
|
-
__name(updateState, "updateState");
|
|
293
256
|
function didStateUpdate(state, handler, changes) {
|
|
294
257
|
isFunction(handler) ? handler(state.current) : Object.keys(changes).forEach(function(field) {
|
|
295
258
|
var _handler$field;
|
|
@@ -297,7 +260,6 @@ function didStateUpdate(state, handler, changes) {
|
|
|
297
260
|
});
|
|
298
261
|
return changes;
|
|
299
262
|
}
|
|
300
|
-
__name(didStateUpdate, "didStateUpdate");
|
|
301
263
|
var index = {
|
|
302
264
|
create
|
|
303
265
|
};
|
|
@@ -312,7 +274,7 @@ var config = {
|
|
|
312
274
|
|
|
313
275
|
// ../node_modules/@monaco-editor/loader/lib/es/utils/curry.js
|
|
314
276
|
function curry2(fn) {
|
|
315
|
-
return
|
|
277
|
+
return function curried() {
|
|
316
278
|
var _this = this;
|
|
317
279
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
318
280
|
args[_key] = arguments[_key];
|
|
@@ -323,15 +285,13 @@ function curry2(fn) {
|
|
|
323
285
|
}
|
|
324
286
|
return curried.apply(_this, [].concat(args, nextArgs));
|
|
325
287
|
};
|
|
326
|
-
}
|
|
288
|
+
};
|
|
327
289
|
}
|
|
328
|
-
__name(curry2, "curry");
|
|
329
290
|
|
|
330
291
|
// ../node_modules/@monaco-editor/loader/lib/es/utils/isObject.js
|
|
331
292
|
function isObject2(value) {
|
|
332
293
|
return {}.toString.call(value).includes("Object");
|
|
333
294
|
}
|
|
334
|
-
__name(isObject2, "isObject");
|
|
335
295
|
|
|
336
296
|
// ../node_modules/@monaco-editor/loader/lib/es/validators/index.js
|
|
337
297
|
function validateConfig(config3) {
|
|
@@ -347,15 +307,12 @@ function validateConfig(config3) {
|
|
|
347
307
|
}
|
|
348
308
|
return config3;
|
|
349
309
|
}
|
|
350
|
-
__name(validateConfig, "validateConfig");
|
|
351
310
|
function informAboutDeprecation() {
|
|
352
311
|
console.warn(errorMessages2.deprecation);
|
|
353
312
|
}
|
|
354
|
-
__name(informAboutDeprecation, "informAboutDeprecation");
|
|
355
313
|
function throwError2(errorMessages3, type) {
|
|
356
314
|
throw new Error(errorMessages3[type] || errorMessages3["default"]);
|
|
357
315
|
}
|
|
358
|
-
__name(throwError2, "throwError");
|
|
359
316
|
var errorMessages2 = {
|
|
360
317
|
configIsRequired: "the configuration object is required",
|
|
361
318
|
configType: "the configuration object should be an object",
|
|
@@ -368,7 +325,7 @@ var validators2 = {
|
|
|
368
325
|
};
|
|
369
326
|
|
|
370
327
|
// ../node_modules/@monaco-editor/loader/lib/es/utils/compose.js
|
|
371
|
-
var compose2 =
|
|
328
|
+
var compose2 = function compose3() {
|
|
372
329
|
for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
373
330
|
fns[_key] = arguments[_key];
|
|
374
331
|
}
|
|
@@ -377,7 +334,7 @@ var compose2 = /* @__PURE__ */ __name(function compose3() {
|
|
|
377
334
|
return f(y);
|
|
378
335
|
}, x);
|
|
379
336
|
};
|
|
380
|
-
}
|
|
337
|
+
};
|
|
381
338
|
|
|
382
339
|
// ../node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js
|
|
383
340
|
function merge(target, source) {
|
|
@@ -390,7 +347,6 @@ function merge(target, source) {
|
|
|
390
347
|
});
|
|
391
348
|
return _objectSpread2(_objectSpread2({}, target), source);
|
|
392
349
|
}
|
|
393
|
-
__name(merge, "merge");
|
|
394
350
|
|
|
395
351
|
// ../node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js
|
|
396
352
|
var CANCELATION_MESSAGE = {
|
|
@@ -409,12 +365,9 @@ function makeCancelable(promise) {
|
|
|
409
365
|
return hasCanceled_ = true;
|
|
410
366
|
}, wrappedPromise;
|
|
411
367
|
}
|
|
412
|
-
__name(makeCancelable, "makeCancelable");
|
|
413
368
|
|
|
414
369
|
// ../node_modules/@monaco-editor/loader/lib/es/loader/index.js
|
|
415
|
-
var _excluded = [
|
|
416
|
-
"monaco"
|
|
417
|
-
];
|
|
370
|
+
var _excluded = ["monaco"];
|
|
418
371
|
var _state$create = state_local_default.create({
|
|
419
372
|
config,
|
|
420
373
|
isInitialized: false,
|
|
@@ -434,7 +387,6 @@ function config2(globalConfig) {
|
|
|
434
387
|
};
|
|
435
388
|
});
|
|
436
389
|
}
|
|
437
|
-
__name(config2, "config");
|
|
438
390
|
function init() {
|
|
439
391
|
var state = getState(function(_ref) {
|
|
440
392
|
var monaco = _ref.monaco, isInitialized = _ref.isInitialized, resolve = _ref.resolve;
|
|
@@ -461,16 +413,13 @@ function init() {
|
|
|
461
413
|
}
|
|
462
414
|
return makeCancelable(wrapperPromise);
|
|
463
415
|
}
|
|
464
|
-
__name(init, "init");
|
|
465
416
|
function injectScripts(script) {
|
|
466
417
|
return document.body.appendChild(script);
|
|
467
418
|
}
|
|
468
|
-
__name(injectScripts, "injectScripts");
|
|
469
419
|
function createScript(src) {
|
|
470
420
|
var script = document.createElement("script");
|
|
471
421
|
return src && (script.src = src), script;
|
|
472
422
|
}
|
|
473
|
-
__name(createScript, "createScript");
|
|
474
423
|
function getMonacoLoaderScript(configureLoader2) {
|
|
475
424
|
var state = getState(function(_ref2) {
|
|
476
425
|
var config3 = _ref2.config, reject = _ref2.reject;
|
|
@@ -486,7 +435,6 @@ function getMonacoLoaderScript(configureLoader2) {
|
|
|
486
435
|
loaderScript.onerror = state.reject;
|
|
487
436
|
return loaderScript;
|
|
488
437
|
}
|
|
489
|
-
__name(getMonacoLoaderScript, "getMonacoLoaderScript");
|
|
490
438
|
function configureLoader() {
|
|
491
439
|
var state = getState(function(_ref3) {
|
|
492
440
|
var config3 = _ref3.config, resolve = _ref3.resolve, reject = _ref3.reject;
|
|
@@ -498,9 +446,7 @@ function configureLoader() {
|
|
|
498
446
|
});
|
|
499
447
|
var require2 = window.require;
|
|
500
448
|
require2.config(state.config);
|
|
501
|
-
require2([
|
|
502
|
-
"vs/editor/editor.main"
|
|
503
|
-
], function(loaded) {
|
|
449
|
+
require2(["vs/editor/editor.main"], function(loaded) {
|
|
504
450
|
var monaco = loaded.m || loaded;
|
|
505
451
|
storeMonacoInstance(monaco);
|
|
506
452
|
state.resolve(monaco);
|
|
@@ -508,7 +454,6 @@ function configureLoader() {
|
|
|
508
454
|
state.reject(error);
|
|
509
455
|
});
|
|
510
456
|
}
|
|
511
|
-
__name(configureLoader, "configureLoader");
|
|
512
457
|
function storeMonacoInstance(monaco) {
|
|
513
458
|
if (!getState().monaco) {
|
|
514
459
|
setState({
|
|
@@ -516,14 +461,12 @@ function storeMonacoInstance(monaco) {
|
|
|
516
461
|
});
|
|
517
462
|
}
|
|
518
463
|
}
|
|
519
|
-
__name(storeMonacoInstance, "storeMonacoInstance");
|
|
520
464
|
function __getMonacoInstance() {
|
|
521
465
|
return getState(function(_ref4) {
|
|
522
466
|
var monaco = _ref4.monaco;
|
|
523
467
|
return monaco;
|
|
524
468
|
});
|
|
525
469
|
}
|
|
526
|
-
__name(__getMonacoInstance, "__getMonacoInstance");
|
|
527
470
|
var wrapperPromise = new Promise(function(resolve, reject) {
|
|
528
471
|
return setState({
|
|
529
472
|
resolve,
|
|
@@ -555,19 +498,16 @@ var Y = ae;
|
|
|
555
498
|
function Me({ children: e }) {
|
|
556
499
|
return me.createElement("div", { style: Y.container }, e);
|
|
557
500
|
}
|
|
558
|
-
__name(Me, "Me");
|
|
559
501
|
var Z = Me;
|
|
560
502
|
var $ = Z;
|
|
561
503
|
function Ee({ width: e, height: r, isEditorReady: n, loading: t, _ref: a, className: m, wrapperProps: E }) {
|
|
562
504
|
return K.createElement("section", { style: { ...v.wrapper, width: e, height: r }, ...E }, !n && K.createElement($, null, t), K.createElement("div", { ref: a, style: { ...v.fullWidth, ...!n && v.hide }, className: m }));
|
|
563
505
|
}
|
|
564
|
-
__name(Ee, "Ee");
|
|
565
506
|
var ee = Ee;
|
|
566
507
|
var H = ye(ee);
|
|
567
508
|
function Ce(e) {
|
|
568
509
|
xe(e, []);
|
|
569
510
|
}
|
|
570
|
-
__name(Ce, "Ce");
|
|
571
511
|
var k = Ce;
|
|
572
512
|
function he(e, r, n = true) {
|
|
573
513
|
let t = Re(true);
|
|
@@ -575,27 +515,21 @@ function he(e, r, n = true) {
|
|
|
575
515
|
t.current = false;
|
|
576
516
|
} : e, r);
|
|
577
517
|
}
|
|
578
|
-
__name(he, "he");
|
|
579
518
|
var l = he;
|
|
580
519
|
function D() {
|
|
581
520
|
}
|
|
582
|
-
__name(D, "D");
|
|
583
521
|
function h(e, r, n, t) {
|
|
584
522
|
return De(e, t) || be(e, r, n, t);
|
|
585
523
|
}
|
|
586
|
-
__name(h, "h");
|
|
587
524
|
function De(e, r) {
|
|
588
525
|
return e.editor.getModel(te(e, r));
|
|
589
526
|
}
|
|
590
|
-
__name(De, "De");
|
|
591
527
|
function be(e, r, n, t) {
|
|
592
528
|
return e.editor.createModel(r, n, t ? te(e, t) : void 0);
|
|
593
529
|
}
|
|
594
|
-
__name(be, "be");
|
|
595
530
|
function te(e, r) {
|
|
596
531
|
return e.Uri.parse(r);
|
|
597
532
|
}
|
|
598
|
-
__name(te, "te");
|
|
599
533
|
function Oe({ original: e, modified: r, language: n, originalLanguage: t, modifiedLanguage: a, originalModelPath: m, modifiedModelPath: E, keepCurrentOriginalModel: g = false, keepCurrentModifiedModel: N = false, theme: x = "light", loading: P = "Loading...", options: y = {}, height: V = "100%", width: z = "100%", className: F, wrapperProps: j = {}, beforeMount: A = D, onMount: q = D }) {
|
|
600
534
|
let [M, O] = re(false), [T, s] = re(true), u = S(null), c = S(null), w = S(null), d = S(q), o = S(A), b = S(false);
|
|
601
535
|
k(() => {
|
|
@@ -641,10 +575,8 @@ function Oe({ original: e, modified: r, language: n, originalLanguage: t, modifi
|
|
|
641
575
|
let i = u.current?.getModel();
|
|
642
576
|
g || i?.original?.dispose(), N || i?.modified?.dispose(), u.current?.dispose();
|
|
643
577
|
}
|
|
644
|
-
__name(I, "I");
|
|
645
578
|
return ke.createElement(H, { width: z, height: V, isEditorReady: M, loading: P, _ref: w, className: F, wrapperProps: j });
|
|
646
579
|
}
|
|
647
|
-
__name(Oe, "Oe");
|
|
648
580
|
var ie = Oe;
|
|
649
581
|
var we = Te(ie);
|
|
650
582
|
function Pe() {
|
|
@@ -656,7 +588,6 @@ function Pe() {
|
|
|
656
588
|
})), () => n?.cancel();
|
|
657
589
|
}), e;
|
|
658
590
|
}
|
|
659
|
-
__name(Pe, "Pe");
|
|
660
591
|
var Le = Pe;
|
|
661
592
|
function He(e) {
|
|
662
593
|
let r = ve();
|
|
@@ -664,7 +595,6 @@ function He(e) {
|
|
|
664
595
|
r.current = e;
|
|
665
596
|
}, [e]), r.current;
|
|
666
597
|
}
|
|
667
|
-
__name(He, "He");
|
|
668
598
|
var se = He;
|
|
669
599
|
var _ = /* @__PURE__ */ new Map();
|
|
670
600
|
function Ve({ defaultValue: e, defaultLanguage: r, defaultPath: n, value: t, language: a, path: m, theme: E = "light", line: g, loading: N = "Loading...", options: x = {}, overrideServices: P = {}, saveViewState: y = true, keepCurrentModel: V = false, width: z = "100%", height: F = "100%", className: j, wrapperProps: A = {}, beforeMount: q = D, onMount: M = D, onChange: O, onValidate: T = D }) {
|
|
@@ -721,10 +651,8 @@ function Ve({ defaultValue: e, defaultLanguage: r, defaultPath: n, value: t, lan
|
|
|
721
651
|
function pe() {
|
|
722
652
|
I.current?.dispose(), V ? y && _.set(m, o.current.saveViewState()) : o.current.getModel()?.dispose(), o.current.dispose();
|
|
723
653
|
}
|
|
724
|
-
__name(pe, "pe");
|
|
725
654
|
return We.createElement(H, { width: z, height: F, isEditorReady: s, loading: N, _ref: b, className: j, wrapperProps: A });
|
|
726
655
|
}
|
|
727
|
-
__name(Ve, "Ve");
|
|
728
656
|
var fe = Ve;
|
|
729
657
|
var de = ze(fe);
|
|
730
658
|
var Ft = de;
|
package/dist/index.css
CHANGED
|
@@ -1013,6 +1013,22 @@ html[data-theme=dark] .exprNodeAsyncPill {
|
|
|
1013
1013
|
.tsEditorShell .monaco-editor .monaco-hover {
|
|
1014
1014
|
pointer-events: none;
|
|
1015
1015
|
}
|
|
1016
|
+
.tsEditorShell .monaco-editor .rsxExprIdentifier {
|
|
1017
|
+
color: #9cdcfe;
|
|
1018
|
+
}
|
|
1019
|
+
.tsEditorShell .monaco-editor .rsxExprKeyword {
|
|
1020
|
+
color: #c586c0;
|
|
1021
|
+
}
|
|
1022
|
+
.tsEditorShell .monaco-editor .rsxExprNumber {
|
|
1023
|
+
color: #b5cea8;
|
|
1024
|
+
}
|
|
1025
|
+
.tsEditorShell .monaco-editor .rsxExprOperator,
|
|
1026
|
+
.tsEditorShell .monaco-editor .rsxExprPunctuation {
|
|
1027
|
+
color: #d4d4d4;
|
|
1028
|
+
}
|
|
1029
|
+
.tsEditorShell .monaco-editor .rsxExprString {
|
|
1030
|
+
color: #ce9178;
|
|
1031
|
+
}
|
|
1016
1032
|
@media (max-width: 900px) {
|
|
1017
1033
|
.tsEditorHeader {
|
|
1018
1034
|
align-items: flex-start;
|
package/dist/index.d.ts
CHANGED
|
@@ -178,7 +178,7 @@ interface LayoutResult {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
declare class ExpressionIndex {
|
|
181
|
-
readonly idByExprRef: Map<IExpression<unknown
|
|
181
|
+
readonly idByExprRef: Map<IExpression<unknown>, string>;
|
|
182
182
|
readonly idByExprKey: Map<string, string>;
|
|
183
183
|
readonly parentById: Map<string, string | null>;
|
|
184
184
|
constructor(layout: LayoutResult);
|
|
@@ -503,22 +503,6 @@ declare class ModelExpressionsFactory {
|
|
|
503
503
|
create(model: object, expressionStrings: string[]): IExpressionFactoryResult[];
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
-
declare class ModelIntellisenseService {
|
|
507
|
-
private static _instance;
|
|
508
|
-
model: object;
|
|
509
|
-
monaco?: Monaco$1;
|
|
510
|
-
private readonly scopes;
|
|
511
|
-
private constructor();
|
|
512
|
-
static getInstance(): ModelIntellisenseService;
|
|
513
|
-
setModel(model: object): void;
|
|
514
|
-
register(monacoInstance: Monaco$1): void;
|
|
515
|
-
private getRootScope;
|
|
516
|
-
private getCurrentMemberExpression;
|
|
517
|
-
private getWordRangeAtPosition;
|
|
518
|
-
private getSuggestions;
|
|
519
|
-
private resolveMemberExpression;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
506
|
declare function downloadProjectZip(script: string): void;
|
|
523
507
|
|
|
524
508
|
declare class RxjsMonacoTypesLoader {
|
|
@@ -567,6 +551,8 @@ declare class ScriptEvaluator {
|
|
|
567
551
|
*/
|
|
568
552
|
private _extractAnonymousLocationFromText;
|
|
569
553
|
private _escapeRegExp;
|
|
554
|
+
private _inferLocationFromRuntimeMessage;
|
|
555
|
+
private _offsetToLineColumn;
|
|
570
556
|
evaluateModel<T>(editorModelString: string): EvaluateModelResult<T>;
|
|
571
557
|
private buildApi;
|
|
572
558
|
}
|
|
@@ -583,4 +569,4 @@ declare function setupScriptModels(args: {
|
|
|
583
569
|
|
|
584
570
|
declare function buildZipFromTextFiles(files: Record<string, string>): Blob;
|
|
585
571
|
|
|
586
|
-
export { ChangeHistoryPanel, CodeViewer, DataTable, type EdgePathVm, ErrorPanel, type EvaluateModelResult, ExpressionChangeHistoryView, ExpressionChangeTrackerFactory, ExpressionIndex, ExpressionTree, ExpressionTreePanel, ExpressionTreeViewWithModel, type ExpressionTreeViewport, type IChangeHistoryPanel, type ICodeViewerProps, type IDataTableColumn, type IDataTableProps, type IErrorPanel, type IExpressionChangeHistoryViewProps, type IExpressionFactoryResult, type IExpressionTreePanelProps, type IExpressionTreeProps, type IExpressionTreeViewWithModel, type IItemLinkCardContentProps, type ILeftAccentCardProps, type INotificationToastProps, type ITabItem, type ITabsProps, type ITsEditorWithErrorPanelProp, type IZoomDropdown, ItemLinkCardContent, type LayoutEdge$1 as LayoutEdge, type LayoutNode$2 as LayoutNode, type LayoutResult, LeftAccentCard, type LeftAccentCardTone, ModelExpressionsFactory,
|
|
572
|
+
export { ChangeHistoryPanel, CodeViewer, DataTable, type EdgePathVm, ErrorPanel, type EvaluateModelResult, ExpressionChangeHistoryView, ExpressionChangeTrackerFactory, ExpressionIndex, ExpressionTree, ExpressionTreePanel, ExpressionTreeViewWithModel, type ExpressionTreeViewport, type IChangeHistoryPanel, type ICodeViewerProps, type IDataTableColumn, type IDataTableProps, type IErrorPanel, type IExpressionChangeHistoryViewProps, type IExpressionFactoryResult, type IExpressionTreePanelProps, type IExpressionTreeProps, type IExpressionTreeViewWithModel, type IItemLinkCardContentProps, type ILeftAccentCardProps, type INotificationToastProps, type ITabItem, type ITabsProps, type ITsEditorWithErrorPanelProp, type IZoomDropdown, ItemLinkCardContent, type LayoutEdge$1 as LayoutEdge, type LayoutNode$2 as LayoutNode, type LayoutResult, LeftAccentCard, type LeftAccentCardTone, ModelExpressionsFactory, type NodeId, type NodePos, type NodeVm, NotificationToast, type NotificationToastVariant, Playground, type RxJsScope, RxjsMonacoTypesLoader, ScriptEvaluator, type ScriptWrapperModels, type TNode, TSEditor, type TSEditorProps, Tabs, type TrackerSubscriptionResult, TreeLayoutEngine, TsEditorWithErrorPanel, ZOOM_PRESETS, ZoomDropdown, buildZipFromTextFiles, downloadProjectZip, ensureExpressionParserBootstrapped, installMonacoPlaceholder, rxjsScope, setupScriptModels, snapZoomPercentToPreset, stackKey, useExpressionChangeHistoryTracker, useExpressionChangeTrackerSubscription, useExpressionChangedRerender, useExpressionTreeEdgePaths, useExpressionTreeNodeVms, useExpressionTreeViewport, useHighlightAnimation, useLatestChangeSetFromTracker, usePersistChangeHistoryFromStack, useResizeObserverSize, useSyncScriptToUrl };
|