react-dsl-editor 0.2.2 → 0.2.3

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.
@@ -0,0 +1,86 @@
1
+ import { CSSProperties } from 'react';
2
+ import { JSX } from 'react/jsx-runtime';
3
+ import { TextareaHTMLAttributes } from 'react';
4
+
5
+ export declare function alternative<T extends string>(type?: T, ...seq: Parse<T>[]): Parse<T>;
6
+
7
+ export declare function appendOffset<T>(error: ParserError<T>, offset: number): ParserError<T>;
8
+
9
+ export declare function appendOffsets<T>(errors: ParserError<T>[], offsets: number): ParserError<T>[];
10
+
11
+ export declare interface ASTNode<T extends string> {
12
+ type: T;
13
+ text: string;
14
+ children?: ASTNode<T>[];
15
+ errors: ParserError<T>[];
16
+ offset: number;
17
+ }
18
+
19
+ export declare function DslEditor<T extends string>({ code, onChange, onParsed, grammar, wrap, suggestions: clientSuggestions, className, styles, ...textareaProps }: {
20
+ code: string;
21
+ onChange: (text: string) => void;
22
+ onParsed?: (ast: ParserResult<T>) => void;
23
+ grammar: Parse<T>;
24
+ wrap?: boolean;
25
+ className?: string;
26
+ styles?: Partial<Record<T | 'error', CSSProperties>>;
27
+ suggestions?: (type: T | 'error') => string[] | undefined;
28
+ } & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'wrap' | 'onChange'>): JSX.Element;
29
+
30
+ export declare function isParserError<T extends string>(result: ParserResult<T>): boolean;
31
+
32
+ export declare function isParserSuccess<T extends string>(result: ParserResult<T>): boolean;
33
+
34
+ export declare type NodeTypes<T> = _NodeTypes<T> | 'error';
35
+
36
+ declare type _NodeTypes<T> = T extends Parse<infer U> ? U : never;
37
+
38
+ export declare function optional<T extends string>(subparser: Parse<T>): Parse<T>;
39
+
40
+ export declare const optionalWhitespace: Parse<"optionalWhitespace">;
41
+
42
+ export declare type Parse<T extends string> = (text: string) => ParserResult<T>;
43
+
44
+ export declare class Parser<T extends string> {
45
+ private readonly parser;
46
+ constructor(parser: Parse<T>);
47
+ parse(input: string): ASTNode<T>;
48
+ }
49
+
50
+ export declare interface ParserError<T> {
51
+ offset: number;
52
+ expected: string | RegExp;
53
+ got: string;
54
+ type: T;
55
+ }
56
+
57
+ export declare interface ParserResult<T extends string> {
58
+ type: T;
59
+ text: string;
60
+ children?: ParserResult<T>[];
61
+ errors: ParserError<T>[];
62
+ }
63
+
64
+ export declare class ParsingError extends Error {
65
+ constructor(msg: string);
66
+ }
67
+
68
+ export declare function pattern(regex: string): Parse<'pattern'>;
69
+
70
+ export declare function pattern<T extends string>(regex: string, type: T): Parse<T>;
71
+
72
+ export declare const rational: Parse<"rational">;
73
+
74
+ export declare function repeat<T extends string>(type: T | undefined, parser: Parse<T>, min?: number, max?: number): Parse<T>;
75
+
76
+ export declare function seq<T extends string>(type?: T, ...p: Parse<T>[]): Parse<T | 'optionalWhitespace'>;
77
+
78
+ export declare function sequence<T extends string>(type?: T, ...seq: Parse<T>[]): Parse<T>;
79
+
80
+ export declare function term<T extends string>(str: T): Parse<T>;
81
+
82
+ export declare function term<T extends string>(str: string, type: T): Parse<T>;
83
+
84
+ export declare const ws: Parse<"space" | "ws">;
85
+
86
+ export { }
@@ -0,0 +1,566 @@
1
+ import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ const textStyle = {
4
+ position: "absolute",
5
+ inset: 0,
6
+ overflow: "auto",
7
+ padding: 3,
8
+ fontSize: "1em",
9
+ lineHeight: "1.3em",
10
+ fontFamily: "monospace"
11
+ }, ReadOnlyTextarea = forwardRef(function({ wrap: o, children: _, style: v = {} }, y) {
12
+ return /* @__PURE__ */ jsx("pre", {
13
+ ref: y,
14
+ style: {
15
+ ...textStyle,
16
+ pointerEvents: "none",
17
+ margin: 0,
18
+ overflow: "auto",
19
+ whiteSpace: o ? "pre-wrap" : "pre",
20
+ ...v
21
+ },
22
+ children: _
23
+ });
24
+ });
25
+ function SyntaxHighlighter({ syntax: o = [], ref: _, wrap: v, styles: y }) {
26
+ return /* @__PURE__ */ jsx(ReadOnlyTextarea, {
27
+ ref: _,
28
+ wrap: v,
29
+ children: o.map((o, _) => /* @__PURE__ */ jsx("span", {
30
+ className: [o.name].join(" "),
31
+ style: y?.[o.name],
32
+ children: o.text
33
+ }, `token_${_}`))
34
+ });
35
+ }
36
+ function e$3(o, _, v) {
37
+ let y = (v) => o(v, ..._);
38
+ return v === void 0 ? y : Object.assign(y, {
39
+ lazy: v,
40
+ lazyArgs: _
41
+ });
42
+ }
43
+ function t$2(o, _, v) {
44
+ let y = o.length - _.length;
45
+ if (y === 0) return o(..._);
46
+ if (y === 1) return e$3(o, _, v);
47
+ throw Error("Wrong number of arguments");
48
+ }
49
+ var t$5 = {
50
+ done: !1,
51
+ hasNext: !1
52
+ };
53
+ function t$6(o, ..._) {
54
+ let v = o, y = _.map((o) => "lazy" in o ? r$2(o) : void 0), b = 0;
55
+ for (; b < _.length;) {
56
+ if (y[b] === void 0 || !i$1(v)) {
57
+ let o = _[b];
58
+ v = o(v), b += 1;
59
+ continue;
60
+ }
61
+ let o = [];
62
+ for (let v = b; v < _.length; v++) {
63
+ let _ = y[v];
64
+ if (_ === void 0 || (o.push(_), _.isSingle)) break;
65
+ }
66
+ let x = [];
67
+ for (let _ of v) if (n$3(_, x, o)) break;
68
+ let { isSingle: S } = o.at(-1);
69
+ v = S ? x[0] : x, b += o.length;
70
+ }
71
+ return v;
72
+ }
73
+ function n$3(o, _, v) {
74
+ if (v.length === 0) return _.push(o), !1;
75
+ let y = o, b = t$5, x = !1;
76
+ for (let [o, S] of v.entries()) {
77
+ let { index: C, items: w } = S;
78
+ if (w.push(y), b = S(y, C, w), S.index += 1, b.hasNext) {
79
+ if (b.hasMany ?? !1) {
80
+ for (let y of b.next) if (n$3(y, _, v.slice(o + 1))) return !0;
81
+ return x;
82
+ }
83
+ y = b.next;
84
+ }
85
+ if (!b.hasNext) break;
86
+ b.done && (x = !0);
87
+ }
88
+ return b.hasNext && _.push(y), x;
89
+ }
90
+ function r$2(o) {
91
+ let { lazy: _, lazyArgs: v } = o, y = _(...v);
92
+ return Object.assign(y, {
93
+ isSingle: _.single ?? !1,
94
+ index: 0,
95
+ items: []
96
+ });
97
+ }
98
+ function i$1(o) {
99
+ return typeof o == "string" || typeof o == "object" && !!o && Symbol.iterator in o;
100
+ }
101
+ var e$1 = {
102
+ asc: (o, _) => o > _,
103
+ desc: (o, _) => o < _
104
+ };
105
+ function t(o, _) {
106
+ let [v, ...y] = _;
107
+ if (!i(v)) {
108
+ let _ = r$1(...y);
109
+ return o(v, _);
110
+ }
111
+ let b = r$1(v, ...y);
112
+ return (_) => o(_, b);
113
+ }
114
+ function r$1(o, _, ...v) {
115
+ let y = typeof o == "function" ? o : o[0], b = typeof o == "function" ? "asc" : o[1], { [b]: x } = e$1, S = _ === void 0 ? void 0 : r$1(_, ...v);
116
+ return (o, _) => {
117
+ let v = y(o), b = y(_);
118
+ return x(v, b) ? 1 : x(b, v) ? -1 : S?.(o, _) ?? 0;
119
+ };
120
+ }
121
+ function i(o) {
122
+ if (a(o)) return !0;
123
+ if (typeof o != "object" || !Array.isArray(o)) return !1;
124
+ let [_, v, ...y] = o;
125
+ return a(_) && typeof v == "string" && v in e$1 && y.length === 0;
126
+ }
127
+ var a = (o) => typeof o == "function" && o.length === 1;
128
+ function e(o) {
129
+ return o === "" || o === void 0 ? !0 : Array.isArray(o) ? o.length === 0 : Object.keys(o).length === 0;
130
+ }
131
+ function t$4(...o) {
132
+ return t$2(n$2, o);
133
+ }
134
+ var n$2 = (o) => o.at(-1);
135
+ function t$3(...o) {
136
+ return t$2(n$1, o, r);
137
+ }
138
+ var n$1 = (o, _) => o.map(_), r = (o) => (_, v, y) => ({
139
+ done: !1,
140
+ hasNext: !0,
141
+ next: o(_, v, y)
142
+ });
143
+ function t$1(...o) {
144
+ return t(n, o);
145
+ }
146
+ var n = (o, _) => [...o].sort(_);
147
+ function isParserError(o) {
148
+ return !e(o.errors);
149
+ }
150
+ function isParserSuccess(o) {
151
+ return !e(o.text);
152
+ }
153
+ function alternative(o = "alternative", ..._) {
154
+ return (v) => {
155
+ let y = [];
156
+ for (let o of _) {
157
+ let _ = o(v);
158
+ if (isParserSuccess(_)) return _;
159
+ y.push(..._.errors);
160
+ }
161
+ return {
162
+ type: o,
163
+ text: "",
164
+ errors: y
165
+ };
166
+ };
167
+ }
168
+ function appendOffset(o, _) {
169
+ return {
170
+ ...o,
171
+ offset: o.offset + _
172
+ };
173
+ }
174
+ function appendOffsets(o, _) {
175
+ return o.map((o) => appendOffset(o, _));
176
+ }
177
+ function optional(o) {
178
+ return (_) => {
179
+ let v = o(_);
180
+ return isParserError(v) ? {
181
+ type: v.type,
182
+ text: "",
183
+ errors: []
184
+ } : v;
185
+ };
186
+ }
187
+ function pattern(o, _ = "pattern") {
188
+ return (v) => {
189
+ let y = (/* @__PURE__ */ RegExp(`^${o}`)).exec(v);
190
+ return y ? {
191
+ type: _,
192
+ text: y[0],
193
+ errors: []
194
+ } : {
195
+ type: _,
196
+ text: "",
197
+ errors: [{
198
+ expected: new RegExp(o),
199
+ got: v,
200
+ offset: 0,
201
+ type: _
202
+ }]
203
+ };
204
+ };
205
+ }
206
+ const optionalWhitespace = pattern("\\s*", "optionalWhitespace");
207
+ function filter(o, _) {
208
+ if (!isParserSuccess(_)) return _;
209
+ let { children: v } = _;
210
+ return v ? {
211
+ ..._,
212
+ children: v.filter(o).map((_) => filter(o, _))
213
+ } : _;
214
+ }
215
+ function trimEmptyNode(o) {
216
+ return filter((o) => isParserError(o) || o.text !== "" || !!o.children, o);
217
+ }
218
+ function withOffset(o, _ = 0) {
219
+ let v = _;
220
+ return {
221
+ ...o,
222
+ children: o.children?.map((o, _, y) => {
223
+ let { text: b } = y[_ - 1] ?? { text: "" };
224
+ return v += b.length, withOffset(o, v);
225
+ }),
226
+ offset: _
227
+ };
228
+ }
229
+ var Parser = class {
230
+ parser;
231
+ constructor(o) {
232
+ this.parser = o;
233
+ }
234
+ parse(o) {
235
+ let _ = withOffset(this.parser(o));
236
+ if (_.text !== o) {
237
+ let v = _.text.length;
238
+ _.errors.push({
239
+ offset: v,
240
+ got: o.substring(v),
241
+ expected: "",
242
+ type: "error"
243
+ });
244
+ }
245
+ return [trimEmptyNode].reduce((o, _) => _(o), _);
246
+ }
247
+ }, ParsingError = class extends Error {
248
+ constructor(o) {
249
+ super(o);
250
+ }
251
+ };
252
+ const rational = pattern("\\d+\\.?\\d*", "rational");
253
+ function repeat(o = "repeat", _, v = 1, y = Infinity) {
254
+ return (b) => {
255
+ let x = [], S = 0, C = [];
256
+ for (let o = 0; o < y; o++) {
257
+ let y = _(b.substring(S));
258
+ if (S += y.text.length, (isParserError(y) || C.length > 0) && o >= v) break;
259
+ y.errors.forEach((o) => C.push(appendOffset(o, S))), x.push(y);
260
+ }
261
+ return {
262
+ type: o,
263
+ text: x.map((o) => o.text).join(""),
264
+ errors: C,
265
+ children: x
266
+ };
267
+ };
268
+ }
269
+ function sequence(o = "sequence", ..._) {
270
+ return (v) => {
271
+ let y = [], b = 0, x = [];
272
+ for (let o of _) {
273
+ let _ = o(v.substring(b));
274
+ _.errors = appendOffsets(_.errors, b), b += _.text.length, x.push(..._.errors), y.push(_);
275
+ }
276
+ return {
277
+ type: o,
278
+ text: v.substring(0, b),
279
+ errors: x,
280
+ children: y
281
+ };
282
+ };
283
+ }
284
+ function seq(o = "seq", ..._) {
285
+ return sequence(o, optionalWhitespace, ..._.flatMap((o) => [o, optionalWhitespace]));
286
+ }
287
+ function term(o, _) {
288
+ let v = _ ?? o;
289
+ return (_) => _.startsWith(o) ? {
290
+ type: v,
291
+ text: o,
292
+ errors: []
293
+ } : {
294
+ type: v,
295
+ text: "",
296
+ errors: [{
297
+ expected: o,
298
+ got: _,
299
+ offset: 0,
300
+ type: v
301
+ }]
302
+ };
303
+ }
304
+ const ws = repeat("ws", term(" ", "space"));
305
+ function getSuggestions(o, _, v) {
306
+ return console.assert(!0, o, _, v), {
307
+ suggestions: [],
308
+ prefix: ""
309
+ };
310
+ }
311
+ function syntaxForParserResult(o, _, v = []) {
312
+ if (o.children) for (let y of o.children) syntaxForParserResult(y, _, v), _ += isParserSuccess(y) ? y.text.length : 0;
313
+ else isParserSuccess(o) && v.push({
314
+ name: o.type,
315
+ text: o.text,
316
+ startOffset: _
317
+ });
318
+ return v;
319
+ }
320
+ function removeOverlap(o) {
321
+ return o.flatMap((o, _, v) => {
322
+ let y = v[_ - 1] ?? {
323
+ text: "",
324
+ startOffset: 0,
325
+ name: "error"
326
+ }, b = y.startOffset + y.text.length;
327
+ return o.startOffset < b ? [] : [o];
328
+ });
329
+ }
330
+ function textSyntax(o, _) {
331
+ let v = syntaxForParserResult(o, 0), y = t$6(v, t$3((o) => o.startOffset + o.text.length), t$1((o) => o), t$4(), (o) => o ?? 0);
332
+ if (y < _.length) {
333
+ let o = y;
334
+ v.push({
335
+ name: "error",
336
+ text: _.substring(o),
337
+ startOffset: o
338
+ });
339
+ }
340
+ return removeOverlap(v);
341
+ }
342
+ const CursorPosition = forwardRef(function(o, _) {
343
+ let v = useRef(null), b = useRef(null);
344
+ return useImperativeHandle(_, () => ({ getCursorPosition() {
345
+ if (!v.current || !b.current) return {
346
+ top: 0,
347
+ left: 0
348
+ };
349
+ let { offsetTop: o, offsetLeft: _ } = v.current, { scrollTop: y, scrollLeft: x } = b.current, S = window.getComputedStyle(b.current), C = parseInt(S.lineHeight);
350
+ return {
351
+ top: o - y + C,
352
+ left: _ - x
353
+ };
354
+ } }), []), /* @__PURE__ */ jsxs(ReadOnlyTextarea, {
355
+ ref: b,
356
+ wrap: o.wrap,
357
+ style: { visibility: "hidden" },
358
+ children: [o.text, /* @__PURE__ */ jsx("span", {
359
+ ref: v,
360
+ children: "\xA0"
361
+ })]
362
+ });
363
+ });
364
+ function SuggestionsView({ suggestions: o, onSelect: _ }) {
365
+ return /* @__PURE__ */ jsx("div", {
366
+ style: {
367
+ display: "flex",
368
+ gap: 4,
369
+ padding: "4px 0",
370
+ overflowY: "auto"
371
+ },
372
+ children: o.map((o, v) => /* @__PURE__ */ jsxs("button", {
373
+ onClick: () => _(o),
374
+ children: [
375
+ "\xA0",
376
+ o,
377
+ "\xA0"
378
+ ]
379
+ }, v))
380
+ });
381
+ }
382
+ function shortcutName(o) {
383
+ let _ = "";
384
+ o.ctrlKey && (_ = "Ctrl");
385
+ let { key: v } = o;
386
+ return v === " " && (v = "Space"), `${_}${v}`;
387
+ }
388
+ function useSyncScroll(o) {
389
+ return useCallback((_) => {
390
+ let v = _.currentTarget;
391
+ o.current && v && (o.current.scrollTop = v.scrollTop, o.current.scrollLeft = v.scrollLeft);
392
+ }, [o]);
393
+ }
394
+ function SuggestionsMenu({ suggestions: o, onSelect: _, style: v, selectedIndex: y, onHover: b }) {
395
+ return /* @__PURE__ */ jsx("div", {
396
+ style: {
397
+ position: "absolute",
398
+ ...v,
399
+ background: "#252526",
400
+ border: "1px solid #454545",
401
+ boxShadow: "0 2px 8px rgba(0,0,0,0.3)",
402
+ color: "#cccccc",
403
+ fontFamily: "monospace",
404
+ fontSize: "0.9em",
405
+ minWidth: 200,
406
+ zIndex: 100
407
+ },
408
+ children: o.map((o, v) => /* @__PURE__ */ jsx("div", {
409
+ onClick: () => _(o),
410
+ onMouseOver: () => b(v),
411
+ style: {
412
+ cursor: "pointer",
413
+ padding: "4px 8px",
414
+ backgroundColor: y === v ? "#094771" : "transparent"
415
+ },
416
+ children: o
417
+ }, v))
418
+ });
419
+ }
420
+ function DslEditor({ code: o, onChange: y, onParsed: T, grammar: E, wrap: D = !1, suggestions: O, className: k = DslEditor.name, styles: A,...j }) {
421
+ let [M, N] = useState({
422
+ suggestions: [],
423
+ prefix: ""
424
+ }), [P, F] = useState([]), [I, L] = useState({
425
+ top: 0,
426
+ left: 0,
427
+ visible: !1
428
+ }), [R, z] = useState(0), [B, V] = useState(""), H = useRef(null), U = useRef(null), W = useRef(null), G = useRef(null), K = useCallback((o) => {
429
+ let _ = U.current?.selectionStart ?? 0, v = getSuggestions(o, _, O);
430
+ N(v);
431
+ }, [O]), q = useCallback(() => {
432
+ K(P), V(U.current?.value?.substring(0, U.current?.selectionStart ?? 0) ?? "");
433
+ }, [P, K]);
434
+ useEffect(() => {
435
+ H.current = new Parser(E);
436
+ }, [E]), useEffect(() => {
437
+ if (!H.current) return;
438
+ let _ = H.current.parse(o);
439
+ T?.(_);
440
+ let v = textSyntax(_, o);
441
+ K(v), F(v), V(o.substring(0, U.current?.selectionStart ?? 0));
442
+ }, [
443
+ o,
444
+ T,
445
+ K
446
+ ]);
447
+ let J = useCallback(() => W.current?.getCursorPosition?.() ?? {
448
+ top: 0,
449
+ left: 0
450
+ }, []), Y = useCallback((_) => {
451
+ if (!U.current) return;
452
+ let { selectionStart: v, selectionEnd: b } = U.current, { prefix: x } = M, S = o.substring(0, v - x.length) + _ + o.substring(b);
453
+ y(S), setTimeout(() => {
454
+ U.current && (U.current.focus(), U.current.selectionStart = U.current.selectionEnd = v - x.length + _.length);
455
+ }, 0), L((o) => ({
456
+ ...o,
457
+ visible: !1
458
+ }));
459
+ }, [
460
+ o,
461
+ y,
462
+ M
463
+ ]), X = useMemo(() => ({
464
+ ArrowDown() {
465
+ z((o) => (o + 1) % M.suggestions.length);
466
+ },
467
+ ArrowUp() {
468
+ z((o) => (o - 1 + M.suggestions.length) % M.suggestions.length);
469
+ },
470
+ Enter() {
471
+ M.suggestions[R] && Y(M.suggestions[R]);
472
+ },
473
+ Escape() {
474
+ L((o) => ({
475
+ ...o,
476
+ visible: !1
477
+ }));
478
+ }
479
+ }), [
480
+ Y,
481
+ R,
482
+ M
483
+ ]), Z = useMemo(() => ({ CtrlSpace() {
484
+ let { top: o, left: _ } = J();
485
+ z(0), L({
486
+ visible: !0,
487
+ top: o,
488
+ left: _
489
+ });
490
+ } }), [J]), Q = useCallback((o) => {
491
+ let _ = (I.visible ? X : Z)[shortcutName(o)];
492
+ _ && (o.preventDefault(), _());
493
+ }, [
494
+ I.visible,
495
+ X,
496
+ Z
497
+ ]), $ = useCallback((o) => {
498
+ y(o.target.value), L((o) => ({
499
+ ...o,
500
+ visible: !1
501
+ })), V(o.target.value.substring(0, o.target.selectionStart));
502
+ }, [y]);
503
+ return /* @__PURE__ */ jsxs("div", {
504
+ style: {
505
+ display: "grid",
506
+ gridTemplateRows: "1fr auto",
507
+ flex: 1,
508
+ width: "100%",
509
+ height: "100%"
510
+ },
511
+ className: k,
512
+ children: [/* @__PURE__ */ jsxs("div", {
513
+ style: {
514
+ position: "relative",
515
+ border: "1px solid black",
516
+ overflow: "hidden"
517
+ },
518
+ children: [
519
+ /* @__PURE__ */ jsx("textarea", {
520
+ ref: U,
521
+ spellCheck: !1,
522
+ wrap: D ? "soft" : "off",
523
+ style: {
524
+ ...textStyle,
525
+ color: "transparent",
526
+ background: "transparent",
527
+ caretColor: "black",
528
+ border: "none",
529
+ resize: "none"
530
+ },
531
+ value: o,
532
+ onSelect: q,
533
+ onChange: $,
534
+ onScroll: useSyncScroll(G),
535
+ onKeyDown: Q,
536
+ ...j
537
+ }),
538
+ /* @__PURE__ */ jsx(SyntaxHighlighter, {
539
+ syntax: P,
540
+ ref: G,
541
+ wrap: D,
542
+ styles: A
543
+ }),
544
+ /* @__PURE__ */ jsx(CursorPosition, {
545
+ ref: W,
546
+ text: B,
547
+ wrap: D
548
+ }),
549
+ I.visible && M.suggestions.length > 0 && /* @__PURE__ */ jsx(SuggestionsMenu, {
550
+ suggestions: M.suggestions,
551
+ onSelect: Y,
552
+ style: {
553
+ top: I.top,
554
+ left: I.left
555
+ },
556
+ selectedIndex: R,
557
+ onHover: z
558
+ })
559
+ ]
560
+ }), /* @__PURE__ */ jsx(SuggestionsView, {
561
+ suggestions: M.suggestions,
562
+ onSelect: Y
563
+ })]
564
+ });
565
+ }
566
+ export { DslEditor, Parser, ParsingError, alternative, appendOffset, appendOffsets, isParserError, isParserSuccess, optional, optionalWhitespace, pattern, rational, repeat, seq, sequence, term, ws };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-dsl-editor",
3
3
  "license": "MIT",
4
- "version": "0.2.2",
4
+ "version": "0.2.3",
5
5
  "repository": {
6
6
  "url": "https://github.com/rzymek/react-dsl-editor"
7
7
  },