@commercelayer/app-elements 5.4.1 → 5.5.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.
- package/dist/CodeEditorComponent-CyKOXTx9.js +739 -0
- package/dist/{InputDateComponent-BmVfe6nN.js → InputDateComponent-CX954J1N.js} +1174 -1301
- package/dist/RuleEngineComponent-BJQQwo47.js +1376 -0
- package/dist/fetchCoreResourcesSuggestions-CZkDwjO2.js +126 -0
- package/dist/helpers/giftCards.d.ts +1 -0
- package/dist/helpers/giftCards.test.d.ts +1 -0
- package/dist/helpers/mocks.d.ts +3 -0
- package/dist/helpers/mocks.test.d.ts +1 -0
- package/dist/{main-DfeK68Ef.js → main-ClKWD_hr.js} +8598 -7928
- package/dist/main.d.ts +4 -0
- package/dist/main.js +141 -135
- package/dist/parseISO-DltoM17h.js +120 -0
- package/dist/style.css +1 -1
- package/dist/tailwind.config.js +5 -5
- package/dist/ui/atoms/Icon/icons.d.ts +5 -0
- package/dist/ui/composite/ListItem.d.ts +3 -1
- package/dist/ui/composite/Timeline.d.ts +1 -0
- package/dist/ui/composite/Toast.d.ts +8 -0
- package/dist/ui/forms/CodeEditor/CodeEditor.d.ts +2 -1
- package/dist/ui/forms/CodeEditor/CodeEditorComponent.d.ts +10 -1
- package/dist/ui/forms/CodeEditor/fetchCoreResourcesSuggestions.d.ts +34 -18
- package/dist/ui/forms/RuleEngine/Action/ActionListItem.d.ts +6 -0
- package/dist/ui/forms/RuleEngine/Action/ActionValue.d.ts +5 -0
- package/dist/ui/forms/RuleEngine/Action/index.d.ts +4 -0
- package/dist/ui/forms/RuleEngine/Condition/ConditionListItem.d.ts +8 -0
- package/dist/ui/forms/RuleEngine/Condition/ConditionMatcher.d.ts +6 -0
- package/dist/ui/forms/RuleEngine/Condition/ConditionValue.d.ts +12 -0
- package/dist/ui/forms/RuleEngine/Condition/ValueComponents/InputArrayMatch.d.ts +6 -0
- package/dist/ui/forms/RuleEngine/Condition/ValueComponents/InputNumberRange.d.ts +6 -0
- package/dist/ui/forms/RuleEngine/Condition/ValueComponents/InputTextRange.d.ts +6 -0
- package/dist/ui/forms/RuleEngine/Condition/hooks.d.ts +5 -0
- package/dist/ui/forms/RuleEngine/Condition/index.d.ts +8 -0
- package/dist/ui/forms/RuleEngine/Condition/utils.d.ts +3 -0
- package/dist/ui/forms/RuleEngine/RuleEngine.d.ts +3 -0
- package/dist/ui/forms/RuleEngine/RuleEngineComponent.d.ts +22 -0
- package/dist/ui/forms/RuleEngine/RuleEngineContext.d.ts +18 -0
- package/dist/ui/forms/RuleEngine/RuleName.d.ts +1 -0
- package/dist/ui/forms/RuleEngine/index.d.ts +2 -0
- package/dist/ui/forms/RuleEngine/schema.order_rules.d.ts +335 -0
- package/dist/ui/forms/RuleEngine/schema.price_rules.d.ts +286 -0
- package/dist/ui/forms/RuleEngine/utils.d.ts +24 -0
- package/dist/ui/internals/Overlay.d.ts +13 -0
- package/dist/ui/resources/ResourceLineItems/ResourceLineItems.mocks.d.ts +17 -0
- package/dist/vendor.css +1 -1
- package/package.json +6 -2
- package/dist/CodeEditorComponent-CZtAI0KR.js +0 -794
|
@@ -1,794 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { u as Ee, j as se, I as $e } from "./main-DfeK68Ef.js";
|
|
3
|
-
import V, { memo as ce, useState as U, useEffect as I, useRef as w, useCallback as ue, forwardRef as Ce } from "react";
|
|
4
|
-
function Ie(e, t, r) {
|
|
5
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
6
|
-
value: r,
|
|
7
|
-
enumerable: !0,
|
|
8
|
-
configurable: !0,
|
|
9
|
-
writable: !0
|
|
10
|
-
}) : e[t] = r, e;
|
|
11
|
-
}
|
|
12
|
-
function fe(e, t) {
|
|
13
|
-
var r = Object.keys(e);
|
|
14
|
-
if (Object.getOwnPropertySymbols) {
|
|
15
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
16
|
-
t && (n = n.filter(function(i) {
|
|
17
|
-
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
18
|
-
})), r.push.apply(r, n);
|
|
19
|
-
}
|
|
20
|
-
return r;
|
|
21
|
-
}
|
|
22
|
-
function de(e) {
|
|
23
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
24
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
25
|
-
t % 2 ? fe(Object(r), !0).forEach(function(n) {
|
|
26
|
-
Ie(e, n, r[n]);
|
|
27
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : fe(Object(r)).forEach(function(n) {
|
|
28
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
return e;
|
|
32
|
-
}
|
|
33
|
-
function Le(e, t) {
|
|
34
|
-
if (e == null) return {};
|
|
35
|
-
var r = {}, n = Object.keys(e), i, o;
|
|
36
|
-
for (o = 0; o < n.length; o++)
|
|
37
|
-
i = n[o], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
|
|
38
|
-
return r;
|
|
39
|
-
}
|
|
40
|
-
function Ae(e, t) {
|
|
41
|
-
if (e == null) return {};
|
|
42
|
-
var r = Le(e, t), n, i;
|
|
43
|
-
if (Object.getOwnPropertySymbols) {
|
|
44
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
45
|
-
for (i = 0; i < o.length; i++)
|
|
46
|
-
n = o[i], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
47
|
-
}
|
|
48
|
-
return r;
|
|
49
|
-
}
|
|
50
|
-
function xe(e, t) {
|
|
51
|
-
return De(e) || Te(e, t) || Re(e, t) || Ne();
|
|
52
|
-
}
|
|
53
|
-
function De(e) {
|
|
54
|
-
if (Array.isArray(e)) return e;
|
|
55
|
-
}
|
|
56
|
-
function Te(e, t) {
|
|
57
|
-
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
|
|
58
|
-
var r = [], n = !0, i = !1, o = void 0;
|
|
59
|
-
try {
|
|
60
|
-
for (var a = e[Symbol.iterator](), d; !(n = (d = a.next()).done) && (r.push(d.value), !(t && r.length === t)); n = !0)
|
|
61
|
-
;
|
|
62
|
-
} catch (g) {
|
|
63
|
-
i = !0, o = g;
|
|
64
|
-
} finally {
|
|
65
|
-
try {
|
|
66
|
-
!n && a.return != null && a.return();
|
|
67
|
-
} finally {
|
|
68
|
-
if (i) throw o;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
return r;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function Re(e, t) {
|
|
75
|
-
if (e) {
|
|
76
|
-
if (typeof e == "string") return pe(e, t);
|
|
77
|
-
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
78
|
-
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
|
|
79
|
-
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return pe(e, t);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function pe(e, t) {
|
|
83
|
-
(t == null || t > e.length) && (t = e.length);
|
|
84
|
-
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
|
|
85
|
-
return n;
|
|
86
|
-
}
|
|
87
|
-
function Ne() {
|
|
88
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
89
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
90
|
-
}
|
|
91
|
-
function _e(e, t, r) {
|
|
92
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
93
|
-
value: r,
|
|
94
|
-
enumerable: !0,
|
|
95
|
-
configurable: !0,
|
|
96
|
-
writable: !0
|
|
97
|
-
}) : e[t] = r, e;
|
|
98
|
-
}
|
|
99
|
-
function ge(e, t) {
|
|
100
|
-
var r = Object.keys(e);
|
|
101
|
-
if (Object.getOwnPropertySymbols) {
|
|
102
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
103
|
-
t && (n = n.filter(function(i) {
|
|
104
|
-
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
105
|
-
})), r.push.apply(r, n);
|
|
106
|
-
}
|
|
107
|
-
return r;
|
|
108
|
-
}
|
|
109
|
-
function he(e) {
|
|
110
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
111
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
112
|
-
t % 2 ? ge(Object(r), !0).forEach(function(n) {
|
|
113
|
-
_e(e, n, r[n]);
|
|
114
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ge(Object(r)).forEach(function(n) {
|
|
115
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
return e;
|
|
119
|
-
}
|
|
120
|
-
function qe() {
|
|
121
|
-
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
122
|
-
t[r] = arguments[r];
|
|
123
|
-
return function(n) {
|
|
124
|
-
return t.reduceRight(function(i, o) {
|
|
125
|
-
return o(i);
|
|
126
|
-
}, n);
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
function H(e) {
|
|
130
|
-
return function t() {
|
|
131
|
-
for (var r = this, n = arguments.length, i = new Array(n), o = 0; o < n; o++)
|
|
132
|
-
i[o] = arguments[o];
|
|
133
|
-
return i.length >= e.length ? e.apply(this, i) : function() {
|
|
134
|
-
for (var a = arguments.length, d = new Array(a), g = 0; g < a; g++)
|
|
135
|
-
d[g] = arguments[g];
|
|
136
|
-
return t.apply(r, [].concat(i, d));
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
function te(e) {
|
|
141
|
-
return {}.toString.call(e).includes("Object");
|
|
142
|
-
}
|
|
143
|
-
function ze(e) {
|
|
144
|
-
return !Object.keys(e).length;
|
|
145
|
-
}
|
|
146
|
-
function G(e) {
|
|
147
|
-
return typeof e == "function";
|
|
148
|
-
}
|
|
149
|
-
function Ve(e, t) {
|
|
150
|
-
return Object.prototype.hasOwnProperty.call(e, t);
|
|
151
|
-
}
|
|
152
|
-
function Ue(e, t) {
|
|
153
|
-
return te(t) || T("changeType"), Object.keys(t).some(function(r) {
|
|
154
|
-
return !Ve(e, r);
|
|
155
|
-
}) && T("changeField"), t;
|
|
156
|
-
}
|
|
157
|
-
function We(e) {
|
|
158
|
-
G(e) || T("selectorType");
|
|
159
|
-
}
|
|
160
|
-
function ke(e) {
|
|
161
|
-
G(e) || te(e) || T("handlerType"), te(e) && Object.values(e).some(function(t) {
|
|
162
|
-
return !G(t);
|
|
163
|
-
}) && T("handlersType");
|
|
164
|
-
}
|
|
165
|
-
function Fe(e) {
|
|
166
|
-
e || T("initialIsRequired"), te(e) || T("initialType"), ze(e) && T("initialContent");
|
|
167
|
-
}
|
|
168
|
-
function He(e, t) {
|
|
169
|
-
throw new Error(e[t] || e.default);
|
|
170
|
-
}
|
|
171
|
-
var Be = {
|
|
172
|
-
initialIsRequired: "initial state is required",
|
|
173
|
-
initialType: "initial state should be an object",
|
|
174
|
-
initialContent: "initial state shouldn't be an empty object",
|
|
175
|
-
handlerType: "handler should be an object or a function",
|
|
176
|
-
handlersType: "all handlers should be a functions",
|
|
177
|
-
selectorType: "selector should be a function",
|
|
178
|
-
changeType: "provided value of changes should be an object",
|
|
179
|
-
changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
|
|
180
|
-
default: "an unknown error accured in `state-local` package"
|
|
181
|
-
}, T = H(He)(Be), X = {
|
|
182
|
-
changes: Ue,
|
|
183
|
-
selector: We,
|
|
184
|
-
handler: ke,
|
|
185
|
-
initial: Fe
|
|
186
|
-
};
|
|
187
|
-
function Ke(e) {
|
|
188
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
189
|
-
X.initial(e), X.handler(t);
|
|
190
|
-
var r = {
|
|
191
|
-
current: e
|
|
192
|
-
}, n = H(Ye)(r, t), i = H(Je)(r), o = H(X.changes)(e), a = H(Ge)(r);
|
|
193
|
-
function d() {
|
|
194
|
-
var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(y) {
|
|
195
|
-
return y;
|
|
196
|
-
};
|
|
197
|
-
return X.selector(h), h(r.current);
|
|
198
|
-
}
|
|
199
|
-
function g(h) {
|
|
200
|
-
qe(n, i, o, a)(h);
|
|
201
|
-
}
|
|
202
|
-
return [d, g];
|
|
203
|
-
}
|
|
204
|
-
function Ge(e, t) {
|
|
205
|
-
return G(t) ? t(e.current) : t;
|
|
206
|
-
}
|
|
207
|
-
function Je(e, t) {
|
|
208
|
-
return e.current = he(he({}, e.current), t), t;
|
|
209
|
-
}
|
|
210
|
-
function Ye(e, t, r) {
|
|
211
|
-
return G(t) ? t(e.current) : Object.keys(r).forEach(function(n) {
|
|
212
|
-
var i;
|
|
213
|
-
return (i = t[n]) === null || i === void 0 ? void 0 : i.call(t, e.current[n]);
|
|
214
|
-
}), r;
|
|
215
|
-
}
|
|
216
|
-
var Ze = {
|
|
217
|
-
create: Ke
|
|
218
|
-
}, Qe = {
|
|
219
|
-
paths: {
|
|
220
|
-
vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"
|
|
221
|
-
}
|
|
222
|
-
};
|
|
223
|
-
function Xe(e) {
|
|
224
|
-
return function t() {
|
|
225
|
-
for (var r = this, n = arguments.length, i = new Array(n), o = 0; o < n; o++)
|
|
226
|
-
i[o] = arguments[o];
|
|
227
|
-
return i.length >= e.length ? e.apply(this, i) : function() {
|
|
228
|
-
for (var a = arguments.length, d = new Array(a), g = 0; g < a; g++)
|
|
229
|
-
d[g] = arguments[g];
|
|
230
|
-
return t.apply(r, [].concat(i, d));
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
function et(e) {
|
|
235
|
-
return {}.toString.call(e).includes("Object");
|
|
236
|
-
}
|
|
237
|
-
function tt(e) {
|
|
238
|
-
return e || me("configIsRequired"), et(e) || me("configType"), e.urls ? (rt(), {
|
|
239
|
-
paths: {
|
|
240
|
-
vs: e.urls.monacoBase
|
|
241
|
-
}
|
|
242
|
-
}) : e;
|
|
243
|
-
}
|
|
244
|
-
function rt() {
|
|
245
|
-
console.warn(be.deprecation);
|
|
246
|
-
}
|
|
247
|
-
function nt(e, t) {
|
|
248
|
-
throw new Error(e[t] || e.default);
|
|
249
|
-
}
|
|
250
|
-
var be = {
|
|
251
|
-
configIsRequired: "the configuration object is required",
|
|
252
|
-
configType: "the configuration object should be an object",
|
|
253
|
-
default: "an unknown error accured in `@monaco-editor/loader` package",
|
|
254
|
-
deprecation: `Deprecation warning!
|
|
255
|
-
You are using deprecated way of configuration.
|
|
256
|
-
|
|
257
|
-
Instead of using
|
|
258
|
-
monaco.config({ urls: { monacoBase: '...' } })
|
|
259
|
-
use
|
|
260
|
-
monaco.config({ paths: { vs: '...' } })
|
|
261
|
-
|
|
262
|
-
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
263
|
-
`
|
|
264
|
-
}, me = Xe(nt)(be), it = {
|
|
265
|
-
config: tt
|
|
266
|
-
}, ot = function() {
|
|
267
|
-
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
268
|
-
r[n] = arguments[n];
|
|
269
|
-
return function(i) {
|
|
270
|
-
return r.reduceRight(function(o, a) {
|
|
271
|
-
return a(o);
|
|
272
|
-
}, i);
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
function we(e, t) {
|
|
276
|
-
return Object.keys(t).forEach(function(r) {
|
|
277
|
-
t[r] instanceof Object && e[r] && Object.assign(t[r], we(e[r], t[r]));
|
|
278
|
-
}), de(de({}, e), t);
|
|
279
|
-
}
|
|
280
|
-
var at = {
|
|
281
|
-
type: "cancelation",
|
|
282
|
-
msg: "operation is manually canceled"
|
|
283
|
-
};
|
|
284
|
-
function ie(e) {
|
|
285
|
-
var t = !1, r = new Promise(function(n, i) {
|
|
286
|
-
e.then(function(o) {
|
|
287
|
-
return t ? i(at) : n(o);
|
|
288
|
-
}), e.catch(i);
|
|
289
|
-
});
|
|
290
|
-
return r.cancel = function() {
|
|
291
|
-
return t = !0;
|
|
292
|
-
}, r;
|
|
293
|
-
}
|
|
294
|
-
var ut = Ze.create({
|
|
295
|
-
config: Qe,
|
|
296
|
-
isInitialized: !1,
|
|
297
|
-
resolve: null,
|
|
298
|
-
reject: null,
|
|
299
|
-
monaco: null
|
|
300
|
-
}), ye = xe(ut, 2), J = ye[0], ne = ye[1];
|
|
301
|
-
function ct(e) {
|
|
302
|
-
var t = it.config(e), r = t.monaco, n = Ae(t, ["monaco"]);
|
|
303
|
-
ne(function(i) {
|
|
304
|
-
return {
|
|
305
|
-
config: we(i.config, n),
|
|
306
|
-
monaco: r
|
|
307
|
-
};
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
function lt() {
|
|
311
|
-
var e = J(function(t) {
|
|
312
|
-
var r = t.monaco, n = t.isInitialized, i = t.resolve;
|
|
313
|
-
return {
|
|
314
|
-
monaco: r,
|
|
315
|
-
isInitialized: n,
|
|
316
|
-
resolve: i
|
|
317
|
-
};
|
|
318
|
-
});
|
|
319
|
-
if (!e.isInitialized) {
|
|
320
|
-
if (ne({
|
|
321
|
-
isInitialized: !0
|
|
322
|
-
}), e.monaco)
|
|
323
|
-
return e.resolve(e.monaco), ie(oe);
|
|
324
|
-
if (window.monaco && window.monaco.editor)
|
|
325
|
-
return Oe(window.monaco), e.resolve(window.monaco), ie(oe);
|
|
326
|
-
ot(st, dt)(pt);
|
|
327
|
-
}
|
|
328
|
-
return ie(oe);
|
|
329
|
-
}
|
|
330
|
-
function st(e) {
|
|
331
|
-
return document.body.appendChild(e);
|
|
332
|
-
}
|
|
333
|
-
function ft(e) {
|
|
334
|
-
var t = document.createElement("script");
|
|
335
|
-
return e && (t.src = e), t;
|
|
336
|
-
}
|
|
337
|
-
function dt(e) {
|
|
338
|
-
var t = J(function(n) {
|
|
339
|
-
var i = n.config, o = n.reject;
|
|
340
|
-
return {
|
|
341
|
-
config: i,
|
|
342
|
-
reject: o
|
|
343
|
-
};
|
|
344
|
-
}), r = ft("".concat(t.config.paths.vs, "/loader.js"));
|
|
345
|
-
return r.onload = function() {
|
|
346
|
-
return e();
|
|
347
|
-
}, r.onerror = t.reject, r;
|
|
348
|
-
}
|
|
349
|
-
function pt() {
|
|
350
|
-
var e = J(function(r) {
|
|
351
|
-
var n = r.config, i = r.resolve, o = r.reject;
|
|
352
|
-
return {
|
|
353
|
-
config: n,
|
|
354
|
-
resolve: i,
|
|
355
|
-
reject: o
|
|
356
|
-
};
|
|
357
|
-
}), t = window.require;
|
|
358
|
-
t.config(e.config), t(["vs/editor/editor.main"], function(r) {
|
|
359
|
-
Oe(r), e.resolve(r);
|
|
360
|
-
}, function(r) {
|
|
361
|
-
e.reject(r);
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
function Oe(e) {
|
|
365
|
-
J().monaco || ne({
|
|
366
|
-
monaco: e
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
function gt() {
|
|
370
|
-
return J(function(e) {
|
|
371
|
-
var t = e.monaco;
|
|
372
|
-
return t;
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
var oe = new Promise(function(e, t) {
|
|
376
|
-
return ne({
|
|
377
|
-
resolve: e,
|
|
378
|
-
reject: t
|
|
379
|
-
});
|
|
380
|
-
}), re = {
|
|
381
|
-
config: ct,
|
|
382
|
-
init: lt,
|
|
383
|
-
__getMonacoInstance: gt
|
|
384
|
-
}, ht = { wrapper: { display: "flex", position: "relative", textAlign: "initial" }, fullWidth: { width: "100%" }, hide: { display: "none" } }, ae = ht, mt = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, vt = mt;
|
|
385
|
-
function bt({ children: e }) {
|
|
386
|
-
return V.createElement("div", { style: vt.container }, e);
|
|
387
|
-
}
|
|
388
|
-
var wt = bt, yt = wt;
|
|
389
|
-
function Ot({ width: e, height: t, isEditorReady: r, loading: n, _ref: i, className: o, wrapperProps: a }) {
|
|
390
|
-
return V.createElement("section", { style: { ...ae.wrapper, width: e, height: t }, ...a }, !r && V.createElement(yt, null, n), V.createElement("div", { ref: i, style: { ...ae.fullWidth, ...!r && ae.hide }, className: o }));
|
|
391
|
-
}
|
|
392
|
-
var jt = Ot, je = ce(jt);
|
|
393
|
-
function Mt(e) {
|
|
394
|
-
I(e, []);
|
|
395
|
-
}
|
|
396
|
-
var le = Mt;
|
|
397
|
-
function Pt(e, t, r = !0) {
|
|
398
|
-
let n = w(!0);
|
|
399
|
-
I(n.current || !r ? () => {
|
|
400
|
-
n.current = !1;
|
|
401
|
-
} : e, t);
|
|
402
|
-
}
|
|
403
|
-
var S = Pt;
|
|
404
|
-
function B() {
|
|
405
|
-
}
|
|
406
|
-
function z(e, t, r, n) {
|
|
407
|
-
return St(e, n) || Et(e, t, r, n);
|
|
408
|
-
}
|
|
409
|
-
function St(e, t) {
|
|
410
|
-
return e.editor.getModel(Me(e, t));
|
|
411
|
-
}
|
|
412
|
-
function Et(e, t, r, n) {
|
|
413
|
-
return e.editor.createModel(t, r, n ? Me(e, n) : void 0);
|
|
414
|
-
}
|
|
415
|
-
function Me(e, t) {
|
|
416
|
-
return e.Uri.parse(t);
|
|
417
|
-
}
|
|
418
|
-
function $t({ original: e, modified: t, language: r, originalLanguage: n, modifiedLanguage: i, originalModelPath: o, modifiedModelPath: a, keepCurrentOriginalModel: d = !1, keepCurrentModifiedModel: g = !1, theme: h = "light", loading: y = "Loading...", options: O = {}, height: R = "100%", width: A = "100%", className: Y, wrapperProps: $ = {}, beforeMount: E = B, onMount: x = B }) {
|
|
419
|
-
let [j, C] = U(!1), [L, c] = U(!0), b = w(null), f = w(null), M = w(null), l = w(x), p = w(E), N = w(!1);
|
|
420
|
-
le(() => {
|
|
421
|
-
let u = re.init();
|
|
422
|
-
return u.then((m) => (f.current = m) && c(!1)).catch((m) => (m == null ? void 0 : m.type) !== "cancelation" && console.error("Monaco initialization: error:", m)), () => b.current ? W() : u.cancel();
|
|
423
|
-
}), S(() => {
|
|
424
|
-
if (b.current && f.current) {
|
|
425
|
-
let u = b.current.getOriginalEditor(), m = z(f.current, e || "", n || r || "text", o || "");
|
|
426
|
-
m !== u.getModel() && u.setModel(m);
|
|
427
|
-
}
|
|
428
|
-
}, [o], j), S(() => {
|
|
429
|
-
if (b.current && f.current) {
|
|
430
|
-
let u = b.current.getModifiedEditor(), m = z(f.current, t || "", i || r || "text", a || "");
|
|
431
|
-
m !== u.getModel() && u.setModel(m);
|
|
432
|
-
}
|
|
433
|
-
}, [a], j), S(() => {
|
|
434
|
-
let u = b.current.getModifiedEditor();
|
|
435
|
-
u.getOption(f.current.editor.EditorOption.readOnly) ? u.setValue(t || "") : t !== u.getValue() && (u.executeEdits("", [{ range: u.getModel().getFullModelRange(), text: t || "", forceMoveMarkers: !0 }]), u.pushUndoStop());
|
|
436
|
-
}, [t], j), S(() => {
|
|
437
|
-
var u, m;
|
|
438
|
-
(m = (u = b.current) == null ? void 0 : u.getModel()) == null || m.original.setValue(e || "");
|
|
439
|
-
}, [e], j), S(() => {
|
|
440
|
-
let { original: u, modified: m } = b.current.getModel();
|
|
441
|
-
f.current.editor.setModelLanguage(u, n || r || "text"), f.current.editor.setModelLanguage(m, i || r || "text");
|
|
442
|
-
}, [r, n, i], j), S(() => {
|
|
443
|
-
var u;
|
|
444
|
-
(u = f.current) == null || u.editor.setTheme(h);
|
|
445
|
-
}, [h], j), S(() => {
|
|
446
|
-
var u;
|
|
447
|
-
(u = b.current) == null || u.updateOptions(O);
|
|
448
|
-
}, [O], j);
|
|
449
|
-
let Z = ue(() => {
|
|
450
|
-
var D;
|
|
451
|
-
if (!f.current) return;
|
|
452
|
-
p.current(f.current);
|
|
453
|
-
let u = z(f.current, e || "", n || r || "text", o || ""), m = z(f.current, t || "", i || r || "text", a || "");
|
|
454
|
-
(D = b.current) == null || D.setModel({ original: u, modified: m });
|
|
455
|
-
}, [r, t, i, e, n, o, a]), Q = ue(() => {
|
|
456
|
-
var u;
|
|
457
|
-
!N.current && M.current && (b.current = f.current.editor.createDiffEditor(M.current, { automaticLayout: !0, ...O }), Z(), (u = f.current) == null || u.editor.setTheme(h), C(!0), N.current = !0);
|
|
458
|
-
}, [O, h, Z]);
|
|
459
|
-
I(() => {
|
|
460
|
-
j && l.current(b.current, f.current);
|
|
461
|
-
}, [j]), I(() => {
|
|
462
|
-
!L && !j && Q();
|
|
463
|
-
}, [L, j, Q]);
|
|
464
|
-
function W() {
|
|
465
|
-
var m, D, _, k;
|
|
466
|
-
let u = (m = b.current) == null ? void 0 : m.getModel();
|
|
467
|
-
d || ((D = u == null ? void 0 : u.original) == null || D.dispose()), g || ((_ = u == null ? void 0 : u.modified) == null || _.dispose()), (k = b.current) == null || k.dispose();
|
|
468
|
-
}
|
|
469
|
-
return V.createElement(je, { width: A, height: R, isEditorReady: j, loading: y, _ref: M, className: Y, wrapperProps: $ });
|
|
470
|
-
}
|
|
471
|
-
var Ct = $t;
|
|
472
|
-
ce(Ct);
|
|
473
|
-
function It() {
|
|
474
|
-
let [e, t] = U(re.__getMonacoInstance());
|
|
475
|
-
return le(() => {
|
|
476
|
-
let r;
|
|
477
|
-
return e || (r = re.init(), r.then((n) => {
|
|
478
|
-
t(n);
|
|
479
|
-
})), () => r == null ? void 0 : r.cancel();
|
|
480
|
-
}), e;
|
|
481
|
-
}
|
|
482
|
-
var Lt = It;
|
|
483
|
-
function At(e) {
|
|
484
|
-
let t = w();
|
|
485
|
-
return I(() => {
|
|
486
|
-
t.current = e;
|
|
487
|
-
}, [e]), t.current;
|
|
488
|
-
}
|
|
489
|
-
var xt = At, ee = /* @__PURE__ */ new Map();
|
|
490
|
-
function Dt({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, language: i, path: o, theme: a = "light", line: d, loading: g = "Loading...", options: h = {}, overrideServices: y = {}, saveViewState: O = !0, keepCurrentModel: R = !1, width: A = "100%", height: Y = "100%", className: $, wrapperProps: E = {}, beforeMount: x = B, onMount: j = B, onChange: C, onValidate: L = B }) {
|
|
491
|
-
let [c, b] = U(!1), [f, M] = U(!0), l = w(null), p = w(null), N = w(null), Z = w(j), Q = w(x), W = w(), u = w(n), m = xt(o), D = w(!1), _ = w(!1);
|
|
492
|
-
le(() => {
|
|
493
|
-
let s = re.init();
|
|
494
|
-
return s.then((v) => (l.current = v) && M(!1)).catch((v) => (v == null ? void 0 : v.type) !== "cancelation" && console.error("Monaco initialization: error:", v)), () => p.current ? Se() : s.cancel();
|
|
495
|
-
}), S(() => {
|
|
496
|
-
var v, P, F, q;
|
|
497
|
-
let s = z(l.current, e || n || "", t || i || "", o || r || "");
|
|
498
|
-
s !== ((v = p.current) == null ? void 0 : v.getModel()) && (O && ee.set(m, (P = p.current) == null ? void 0 : P.saveViewState()), (F = p.current) == null || F.setModel(s), O && ((q = p.current) == null || q.restoreViewState(ee.get(o))));
|
|
499
|
-
}, [o], c), S(() => {
|
|
500
|
-
var s;
|
|
501
|
-
(s = p.current) == null || s.updateOptions(h);
|
|
502
|
-
}, [h], c), S(() => {
|
|
503
|
-
!p.current || n === void 0 || (p.current.getOption(l.current.editor.EditorOption.readOnly) ? p.current.setValue(n) : n !== p.current.getValue() && (_.current = !0, p.current.executeEdits("", [{ range: p.current.getModel().getFullModelRange(), text: n, forceMoveMarkers: !0 }]), p.current.pushUndoStop(), _.current = !1));
|
|
504
|
-
}, [n], c), S(() => {
|
|
505
|
-
var v, P;
|
|
506
|
-
let s = (v = p.current) == null ? void 0 : v.getModel();
|
|
507
|
-
s && i && ((P = l.current) == null || P.editor.setModelLanguage(s, i));
|
|
508
|
-
}, [i], c), S(() => {
|
|
509
|
-
var s;
|
|
510
|
-
d !== void 0 && ((s = p.current) == null || s.revealLine(d));
|
|
511
|
-
}, [d], c), S(() => {
|
|
512
|
-
var s;
|
|
513
|
-
(s = l.current) == null || s.editor.setTheme(a);
|
|
514
|
-
}, [a], c);
|
|
515
|
-
let k = ue(() => {
|
|
516
|
-
var s;
|
|
517
|
-
if (!(!N.current || !l.current) && !D.current) {
|
|
518
|
-
Q.current(l.current);
|
|
519
|
-
let v = o || r, P = z(l.current, n || e || "", t || i || "", v || "");
|
|
520
|
-
p.current = (s = l.current) == null ? void 0 : s.editor.create(N.current, { model: P, automaticLayout: !0, ...h }, y), O && p.current.restoreViewState(ee.get(v)), l.current.editor.setTheme(a), d !== void 0 && p.current.revealLine(d), b(!0), D.current = !0;
|
|
521
|
-
}
|
|
522
|
-
}, [e, t, r, n, i, o, h, y, O, a, d]);
|
|
523
|
-
I(() => {
|
|
524
|
-
c && Z.current(p.current, l.current);
|
|
525
|
-
}, [c]), I(() => {
|
|
526
|
-
!f && !c && k();
|
|
527
|
-
}, [f, c, k]), u.current = n, I(() => {
|
|
528
|
-
var s, v;
|
|
529
|
-
c && C && ((s = W.current) == null || s.dispose(), W.current = (v = p.current) == null ? void 0 : v.onDidChangeModelContent((P) => {
|
|
530
|
-
_.current || C(p.current.getValue(), P);
|
|
531
|
-
}));
|
|
532
|
-
}, [c, C]), I(() => {
|
|
533
|
-
if (c) {
|
|
534
|
-
let s = l.current.editor.onDidChangeMarkers((v) => {
|
|
535
|
-
var F;
|
|
536
|
-
let P = (F = p.current.getModel()) == null ? void 0 : F.uri;
|
|
537
|
-
if (P && v.find((q) => q.path === P.path)) {
|
|
538
|
-
let q = l.current.editor.getModelMarkers({ resource: P });
|
|
539
|
-
L == null || L(q);
|
|
540
|
-
}
|
|
541
|
-
});
|
|
542
|
-
return () => {
|
|
543
|
-
s == null || s.dispose();
|
|
544
|
-
};
|
|
545
|
-
}
|
|
546
|
-
return () => {
|
|
547
|
-
};
|
|
548
|
-
}, [c, L]);
|
|
549
|
-
function Se() {
|
|
550
|
-
var s, v;
|
|
551
|
-
(s = W.current) == null || s.dispose(), R ? O && ee.set(o, p.current.saveViewState()) : (v = p.current.getModel()) == null || v.dispose(), p.current.dispose();
|
|
552
|
-
}
|
|
553
|
-
return V.createElement(je, { width: A, height: Y, isEditorReady: c, loading: g, _ref: N, className: $, wrapperProps: E });
|
|
554
|
-
}
|
|
555
|
-
var Tt = Dt, Rt = ce(Tt), Nt = Rt;
|
|
556
|
-
const _t = /* @__PURE__ */ (() => {
|
|
557
|
-
let e;
|
|
558
|
-
return async () => (e != null || (e = await fetch("https://core.commercelayer.io/api/public/resources").then(async (t) => await t.json()).then(
|
|
559
|
-
({ data: t }) => t.reduce((r, n, i, o) => ({
|
|
560
|
-
...r,
|
|
561
|
-
[n.id]: {
|
|
562
|
-
fields: Object.entries(n.attributes.fields).filter(([a]) => !a.startsWith("_")),
|
|
563
|
-
relationships: Object.entries(n.attributes.relationships).filter(([a]) => !a.startsWith("_")).filter(
|
|
564
|
-
([, a]) => t.find(
|
|
565
|
-
(d) => d.id === Pe(a.class_name)
|
|
566
|
-
) != null
|
|
567
|
-
)
|
|
568
|
-
}
|
|
569
|
-
}), {})
|
|
570
|
-
).catch((t) => {
|
|
571
|
-
throw t;
|
|
572
|
-
})), e);
|
|
573
|
-
})();
|
|
574
|
-
async function qt(e, t) {
|
|
575
|
-
var i, o;
|
|
576
|
-
if (!new RegExp(`^(${e.join("|")})(.|$)`).test(t))
|
|
577
|
-
return e.map((a) => ({
|
|
578
|
-
value: a,
|
|
579
|
-
type: "relationship"
|
|
580
|
-
}));
|
|
581
|
-
const r = await zt(t);
|
|
582
|
-
return [].concat(
|
|
583
|
-
((i = r.obj) == null ? void 0 : i.fields.map(([a]) => ({
|
|
584
|
-
value: `${r.path}.${a}`,
|
|
585
|
-
type: "field"
|
|
586
|
-
}))) ?? []
|
|
587
|
-
).concat(
|
|
588
|
-
((o = r.obj) == null ? void 0 : o.relationships.map(([a]) => ({
|
|
589
|
-
value: `${r.path}.${a}`,
|
|
590
|
-
type: "relationship"
|
|
591
|
-
}))) ?? []
|
|
592
|
-
);
|
|
593
|
-
}
|
|
594
|
-
async function zt(e, t) {
|
|
595
|
-
const r = await _t(), n = e.replace(/\.$/, "").split("."), i = n.shift();
|
|
596
|
-
return t ?? (t = r[i ?? ""]), n.reduce(
|
|
597
|
-
(o, a) => {
|
|
598
|
-
var h, y;
|
|
599
|
-
const d = (y = (h = o.obj) == null ? void 0 : h.relationships.find(
|
|
600
|
-
([O]) => O === a
|
|
601
|
-
)) == null ? void 0 : y[1].class_name;
|
|
602
|
-
if (d == null)
|
|
603
|
-
return o;
|
|
604
|
-
const g = r[Pe(d)];
|
|
605
|
-
return g == null ? o : {
|
|
606
|
-
path: `${o.path == null ? "" : `${o.path}.`}${a}`,
|
|
607
|
-
obj: g
|
|
608
|
-
};
|
|
609
|
-
},
|
|
610
|
-
{ path: t != null ? i ?? "" : "", obj: t }
|
|
611
|
-
);
|
|
612
|
-
}
|
|
613
|
-
function Pe(e) {
|
|
614
|
-
return e.replace(/([A-Z])/g, "_$1").replace(/^_/, "").toLowerCase();
|
|
615
|
-
}
|
|
616
|
-
const Vt = Wt(500), Ut = Ce(
|
|
617
|
-
({
|
|
618
|
-
feedback: e,
|
|
619
|
-
hint: t,
|
|
620
|
-
inline: r,
|
|
621
|
-
label: n,
|
|
622
|
-
defaultValue: i,
|
|
623
|
-
readOnly: o,
|
|
624
|
-
value: a,
|
|
625
|
-
language: d = "plaintext",
|
|
626
|
-
height: g = "220px",
|
|
627
|
-
jsonSchema: h = "none",
|
|
628
|
-
onValidate: y,
|
|
629
|
-
onValid: O,
|
|
630
|
-
onChange: R,
|
|
631
|
-
...A
|
|
632
|
-
}, Y) => {
|
|
633
|
-
const $ = Lt(), E = w(null), [x, j] = U(null), {
|
|
634
|
-
settings: { domain: C }
|
|
635
|
-
} = Ee(), L = (c, b) => {
|
|
636
|
-
j(c), c.onDidPaste(() => {
|
|
637
|
-
var f;
|
|
638
|
-
(f = c.getAction("editor.action.formatDocument")) == null || f.run();
|
|
639
|
-
}), c.onDidChangeModelContent(() => {
|
|
640
|
-
const f = c.getModel(), M = b.editor.getModelMarkers({
|
|
641
|
-
resource: f == null ? void 0 : f.uri
|
|
642
|
-
}), l = c.getValue();
|
|
643
|
-
Vt(() => {
|
|
644
|
-
y == null || y(M.length > 0 ? M : null), R == null || R(l), M.length === 0 && (O == null || O(l));
|
|
645
|
-
});
|
|
646
|
-
});
|
|
647
|
-
};
|
|
648
|
-
return I(() => (async function() {
|
|
649
|
-
var b, f;
|
|
650
|
-
const c = (b = x == null ? void 0 : x.getModel()) == null ? void 0 : b.uri.toString();
|
|
651
|
-
if ($ != null && c != null && h != null) {
|
|
652
|
-
(f = E.current) == null || f.call(E);
|
|
653
|
-
const M = $.languages.json.jsonDefaults.diagnosticsOptions.schemas ?? [];
|
|
654
|
-
switch (h) {
|
|
655
|
-
case "none":
|
|
656
|
-
break;
|
|
657
|
-
case "organization-config": {
|
|
658
|
-
M.push({
|
|
659
|
-
schema: await fetch(
|
|
660
|
-
`https://provisioning.${C}/api/public/schemas/organization_config`
|
|
661
|
-
).then(async (l) => await l.json()).then((l) => K(l)),
|
|
662
|
-
uri: `file:///json-schema--${h}.json`,
|
|
663
|
-
fileMatch: [c]
|
|
664
|
-
});
|
|
665
|
-
break;
|
|
666
|
-
}
|
|
667
|
-
case "order-rules": {
|
|
668
|
-
M.push({
|
|
669
|
-
schema: await fetch(
|
|
670
|
-
`https://core.${C}/api/public/schemas/order_rules`
|
|
671
|
-
).then(async (l) => await l.json()).then((l) => K(l)),
|
|
672
|
-
uri: `file:///json-schema--${h}.json`,
|
|
673
|
-
fileMatch: [c]
|
|
674
|
-
}), E.current = ve($, c, ["order"]);
|
|
675
|
-
break;
|
|
676
|
-
}
|
|
677
|
-
case "price-rules": {
|
|
678
|
-
M.push({
|
|
679
|
-
schema: await fetch(
|
|
680
|
-
`https://core.${C}/api/public/schemas/price_rules`
|
|
681
|
-
).then(async (l) => await l.json()).then((l) => K(l)),
|
|
682
|
-
uri: `file:///json-schema--${h}.json`,
|
|
683
|
-
fileMatch: [c]
|
|
684
|
-
}), E.current = ve($, c, ["price"]);
|
|
685
|
-
break;
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
$.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
689
|
-
enableSchemaRequest: !0,
|
|
690
|
-
schemaRequest: "ignore",
|
|
691
|
-
schemaValidation: "error",
|
|
692
|
-
validate: !0,
|
|
693
|
-
schemas: M
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
}(), () => {
|
|
697
|
-
var c;
|
|
698
|
-
(c = E.current) == null || c.call(E);
|
|
699
|
-
}), [$, x, h, C]), /* @__PURE__ */ se.jsx(
|
|
700
|
-
$e,
|
|
701
|
-
{
|
|
702
|
-
label: n,
|
|
703
|
-
hint: t,
|
|
704
|
-
feedback: e,
|
|
705
|
-
name: A.id ?? A.name,
|
|
706
|
-
inline: r,
|
|
707
|
-
children: /* @__PURE__ */ se.jsx(
|
|
708
|
-
Nt,
|
|
709
|
-
{
|
|
710
|
-
defaultPath: A.id ?? A.name,
|
|
711
|
-
className: "[&>.monaco-editor]:rounded [&>.monaco-editor>.overflow-guard]:rounded",
|
|
712
|
-
theme: "vs-dark",
|
|
713
|
-
language: d,
|
|
714
|
-
height: g,
|
|
715
|
-
defaultValue: i,
|
|
716
|
-
value: a,
|
|
717
|
-
onMount: L,
|
|
718
|
-
options: {
|
|
719
|
-
quickSuggestions: !0,
|
|
720
|
-
readOnly: o,
|
|
721
|
-
domReadOnly: !0,
|
|
722
|
-
automaticLayout: !0,
|
|
723
|
-
insertSpaces: !0,
|
|
724
|
-
tabSize: 2,
|
|
725
|
-
lineNumbers: "on",
|
|
726
|
-
padding: { top: 18, bottom: 18 },
|
|
727
|
-
scrollBeyondLastLine: !1,
|
|
728
|
-
pasteAs: { enabled: !0 },
|
|
729
|
-
minimap: {
|
|
730
|
-
enabled: !1
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
)
|
|
735
|
-
}
|
|
736
|
-
);
|
|
737
|
-
}
|
|
738
|
-
);
|
|
739
|
-
Ut.displayName = "CodeEditor";
|
|
740
|
-
function Wt(e = 100) {
|
|
741
|
-
let t = null;
|
|
742
|
-
return function(n) {
|
|
743
|
-
t !== null && clearTimeout(t), t = setTimeout(() => {
|
|
744
|
-
n(), t = null;
|
|
745
|
-
}, e);
|
|
746
|
-
};
|
|
747
|
-
}
|
|
748
|
-
function K(e, t) {
|
|
749
|
-
return typeof e != "object" || e === null ? e : Array.isArray(e) ? e.map((r) => K(r)) : Object.entries(e).reduce((r, [n, i]) => t !== "properties" && ["examples", "default"].includes(n) ? r : {
|
|
750
|
-
...r,
|
|
751
|
-
[n]: K(i, n)
|
|
752
|
-
}, {});
|
|
753
|
-
}
|
|
754
|
-
function ve(e, t, r) {
|
|
755
|
-
return e.languages.registerCompletionItemProvider("json", {
|
|
756
|
-
triggerCharacters: ['"', ":", "."],
|
|
757
|
-
provideCompletionItems: async function(n, i) {
|
|
758
|
-
if (n.uri.toString() !== t.toString())
|
|
759
|
-
return {
|
|
760
|
-
suggestions: []
|
|
761
|
-
};
|
|
762
|
-
const o = n.getWordUntilPosition(i), a = n.getLineContent(i.lineNumber).substring(0, i.column - 1);
|
|
763
|
-
if (/"(field|selector)"\s*:\s*"[^"]*$/.test(a)) {
|
|
764
|
-
const g = o.word;
|
|
765
|
-
if (g != null)
|
|
766
|
-
return {
|
|
767
|
-
incomplete: !1,
|
|
768
|
-
suggestions: (await qt(
|
|
769
|
-
r,
|
|
770
|
-
g
|
|
771
|
-
)).map((y) => ({
|
|
772
|
-
kind: y.type === "relationship" ? e.languages.CompletionItemKind.Module : e.languages.CompletionItemKind.Value,
|
|
773
|
-
label: y.value,
|
|
774
|
-
insertText: y.value,
|
|
775
|
-
// documentation: `Field: ${suggestion}`,
|
|
776
|
-
range: {
|
|
777
|
-
startLineNumber: i.lineNumber,
|
|
778
|
-
startColumn: o.startColumn,
|
|
779
|
-
endLineNumber: i.lineNumber,
|
|
780
|
-
endColumn: o.endColumn
|
|
781
|
-
}
|
|
782
|
-
}))
|
|
783
|
-
};
|
|
784
|
-
}
|
|
785
|
-
return {
|
|
786
|
-
suggestions: []
|
|
787
|
-
};
|
|
788
|
-
}
|
|
789
|
-
}).dispose = () => {
|
|
790
|
-
};
|
|
791
|
-
}
|
|
792
|
-
export {
|
|
793
|
-
Ut as CodeEditor
|
|
794
|
-
};
|