yapp 5.1.294 → 5.1.296
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/.aiignore +12 -0
- package/.swcrc +4 -3
- package/example.js +7037 -12028
- package/lib/colours.js +26 -26
- package/lib/constants.js +9 -9
- package/lib/customEventTypes.js +2 -2
- package/lib/defaults.js +8 -8
- package/lib/div/gutter.js +49 -253
- package/lib/div/lineNumbers.js +42 -197
- package/lib/div/pretty.js +55 -257
- package/lib/div/syntax.js +78 -253
- package/lib/example/constants.js +2 -2
- package/lib/example/view/div/sizeable/left.js +12 -104
- package/lib/example/view/div/sizeable/middle.js +12 -104
- package/lib/example/view/div/sizeable/right.js +12 -104
- package/lib/example/view/div/sizeable/top.js +12 -104
- package/lib/example/view/input.js +11 -23
- package/lib/example/view/javascript.js +32 -86
- package/lib/example/view/json.js +20 -87
- package/lib/example/view/plainText.js +9 -87
- package/lib/example/view/subHeading.js +13 -23
- package/lib/example/view/textarea/bnf.js +21 -124
- package/lib/example/view/textarea/lexicalEntries.js +21 -124
- package/lib/example/view/textarea/parseTree.js +27 -130
- package/lib/example/view/textarea/tokens.js +40 -143
- package/lib/example/view/textarea.js +15 -23
- package/lib/example/view/xml.js +24 -87
- package/lib/example/view.js +85 -258
- package/lib/example/yapp.js +8 -86
- package/lib/example.js +11 -11
- package/lib/index.js +10 -10
- package/lib/languages.js +5 -5
- package/lib/lexer/javascript.js +21 -121
- package/lib/lexer/json.js +21 -121
- package/lib/lexer/plainText.js +21 -121
- package/lib/lexer/xml.js +21 -121
- package/lib/mixins/style.js +27 -27
- package/lib/parser/javascript.js +276 -115
- package/lib/parser/json.js +30 -110
- package/lib/parser/plainText.js +14 -110
- package/lib/parser/xml.js +55 -111
- package/lib/plugin/javascript.js +13 -156
- package/lib/plugin/json.js +13 -156
- package/lib/plugin/plainText.js +13 -156
- package/lib/plugin/xml.js +13 -156
- package/lib/plugin.js +41 -98
- package/lib/prettyPrinter.js +81 -273
- package/lib/processor/javascript.js +64 -153
- package/lib/processor/json.js +17 -105
- package/lib/processor/plainText.js +8 -96
- package/lib/processor/xml.js +32 -120
- package/lib/processor.js +53 -103
- package/lib/renderYappStyles.js +6 -6
- package/lib/richTextarea.js +66 -182
- package/lib/scheme/colour.js +17 -17
- package/lib/scheme/syntax/default.js +6 -6
- package/lib/scheme/syntax/javaScript.js +6 -6
- package/lib/scheme/syntax/json.js +3 -3
- package/lib/scheme/syntax/xml.js +4 -4
- package/lib/style/firaCode.js +18 -7
- package/lib/style/syntax/default.js +33 -5
- package/lib/style/syntax/javaScript.js +14 -4
- package/lib/style/syntax/json.js +8 -4
- package/lib/style/syntax/xml.js +10 -4
- package/lib/style/syntax.js +17 -7
- package/lib/style/yapp.js +70 -5
- package/lib/styles.js +3 -3
- package/lib/token/significant/argument.js +7 -91
- package/lib/token/significant/attribute.js +7 -91
- package/lib/token/significant/comment.js +7 -91
- package/lib/token/significant/error.js +7 -91
- package/lib/token/significant/jsx/attributeName.js +7 -91
- package/lib/token/significant/jsx/tagName.js +7 -91
- package/lib/token/significant/name.js +7 -91
- package/lib/token/significant/string.js +7 -91
- package/lib/token/significant/variable.js +7 -91
- package/lib/tokenTypes.js +9 -9
- package/lib/utilities/configuration.js +4 -6
- package/lib/utilities/content.js +10 -10
- package/lib/utilities/css.js +5 -5
- package/lib/utilities/element.js +5 -5
- package/lib/utilities/plugin.js +10 -11
- package/lib/utilities/rules.js +6 -6
- package/lib/utilities/scrollbar.js +7 -7
- package/lib/utilities/tokens.js +4 -4
- package/lib/yapp.js +115 -337
- package/package.json +3 -3
|
@@ -8,98 +8,20 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return PlainTextView;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function _assert_this_initialized(self) {
|
|
14
|
-
if (self === void 0) {
|
|
15
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
-
}
|
|
17
|
-
return self;
|
|
18
|
-
}
|
|
19
|
-
function _call_super(_this, derived, args) {
|
|
20
|
-
derived = _get_prototype_of(derived);
|
|
21
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
-
}
|
|
23
|
-
function _class_call_check(instance, Constructor) {
|
|
24
|
-
if (!(instance instanceof Constructor)) {
|
|
25
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _define_property(obj, key, value) {
|
|
29
|
-
if (key in obj) {
|
|
30
|
-
Object.defineProperty(obj, key, {
|
|
31
|
-
value: value,
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true
|
|
35
|
-
});
|
|
36
|
-
} else {
|
|
37
|
-
obj[key] = value;
|
|
38
|
-
}
|
|
39
|
-
return obj;
|
|
40
|
-
}
|
|
41
|
-
function _get_prototype_of(o) {
|
|
42
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
43
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
44
|
-
};
|
|
45
|
-
return _get_prototype_of(o);
|
|
46
|
-
}
|
|
47
|
-
function _inherits(subClass, superClass) {
|
|
48
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
49
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
50
|
-
}
|
|
51
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
52
|
-
constructor: {
|
|
53
|
-
value: subClass,
|
|
54
|
-
writable: true,
|
|
55
|
-
configurable: true
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
59
|
-
}
|
|
11
|
+
const _view = /*#__PURE__*/ _interop_require_default(require("../view"));
|
|
12
|
+
const _plainText = /*#__PURE__*/ _interop_require_default(require("../../plugin/plainText"));
|
|
60
13
|
function _interop_require_default(obj) {
|
|
61
14
|
return obj && obj.__esModule ? obj : {
|
|
62
15
|
default: obj
|
|
63
16
|
};
|
|
64
17
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
function _set_prototype_of(o, p) {
|
|
72
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
73
|
-
o.__proto__ = p;
|
|
74
|
-
return o;
|
|
18
|
+
class PlainTextView extends _view.default {
|
|
19
|
+
static Plugin = _plainText.default;
|
|
20
|
+
static firaCode = true;
|
|
21
|
+
static initialContent = `Some plain text...`;
|
|
22
|
+
static defaultProperties = {
|
|
23
|
+
className: "plain-text"
|
|
75
24
|
};
|
|
76
|
-
return _set_prototype_of(o, p);
|
|
77
25
|
}
|
|
78
|
-
function _type_of(obj) {
|
|
79
|
-
"@swc/helpers - typeof";
|
|
80
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
81
|
-
}
|
|
82
|
-
function _is_native_reflect_construct() {
|
|
83
|
-
try {
|
|
84
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
85
|
-
} catch (_) {}
|
|
86
|
-
return (_is_native_reflect_construct = function() {
|
|
87
|
-
return !!result;
|
|
88
|
-
})();
|
|
89
|
-
}
|
|
90
|
-
var PlainTextView = /*#__PURE__*/ function(View) {
|
|
91
|
-
_inherits(PlainTextView, View);
|
|
92
|
-
function PlainTextView() {
|
|
93
|
-
_class_call_check(this, PlainTextView);
|
|
94
|
-
return _call_super(this, PlainTextView, arguments);
|
|
95
|
-
}
|
|
96
|
-
return PlainTextView;
|
|
97
|
-
}(_view.default);
|
|
98
|
-
_define_property(PlainTextView, "Plugin", _plainText.default);
|
|
99
|
-
_define_property(PlainTextView, "firaCode", true);
|
|
100
|
-
_define_property(PlainTextView, "initialContent", "Some plain text...");
|
|
101
|
-
_define_property(PlainTextView, "defaultProperties", {
|
|
102
|
-
className: "plain-text"
|
|
103
|
-
});
|
|
104
26
|
|
|
105
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvcGxhaW5UZXh0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgVmlldyBmcm9tIFwiLi4vdmlld1wiO1xuXG5pbXBvcnQgUGxhaW5UZXh0UGx1Z2luIGZyb20gXCIuLi8uLi9wbHVnaW4vcGxhaW5UZXh0XCI7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIFBsYWluVGV4dFZpZXcgZXh0ZW5kcyBWaWV3IHtcbiAgc3RhdGljIFBsdWdpbiA9IFBsYWluVGV4dFBsdWdpbjtcblxuICBzdGF0aWMgZmlyYUNvZGUgPSB0cnVlO1xuXG4gIHN0YXRpYyBpbml0aWFsQ29udGVudCA9IGBTb21lIHBsYWluIHRleHQuLi5gO1xuXG4gIHN0YXRpYyBkZWZhdWx0UHJvcGVydGllcyA9IHtcbiAgICBjbGFzc05hbWU6IFwicGxhaW4tdGV4dFwiXG4gIH07XG59O1xuIl0sIm5hbWVzIjpbIlBsYWluVGV4dFZpZXciLCJWaWV3IiwiUGx1Z2luIiwiUGxhaW5UZXh0UGx1Z2luIiwiZmlyYUNvZGUiLCJpbml0aWFsQ29udGVudCIsImRlZmF1bHRQcm9wZXJ0aWVzIiwiY2xhc3NOYW1lIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFNQTs7O2VBQXFCQTs7OzZEQUpKO2tFQUVXOzs7Ozs7QUFFYixNQUFNQSxzQkFBc0JDLGFBQUk7SUFDN0MsT0FBT0MsU0FBU0Msa0JBQWUsQ0FBQztJQUVoQyxPQUFPQyxXQUFXLEtBQUs7SUFFdkIsT0FBT0MsaUJBQWlCLENBQUMsa0JBQWtCLENBQUMsQ0FBQztJQUU3QyxPQUFPQyxvQkFBb0I7UUFDekJDLFdBQVc7SUFDYixFQUFFO0FBQ0oifQ==
|
|
@@ -8,32 +8,22 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
11
|
+
const _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
12
|
function _interop_require_default(obj) {
|
|
13
13
|
return obj && obj.__esModule ? obj : {
|
|
14
14
|
default: obj
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var data = _tagged_template_literal([
|
|
29
|
-
"\n\n margin: 1rem 0 0.5rem 0;\n font-size: 2rem;\n \n :first-of-type {\n margin-top: 0;\n }\n\n"
|
|
30
|
-
]);
|
|
31
|
-
_templateObject = function _templateObject() {
|
|
32
|
-
return data;
|
|
33
|
-
};
|
|
34
|
-
return data;
|
|
35
|
-
}
|
|
36
|
-
var SubHeading = _easywithstyle.default.h2(_templateObject());
|
|
37
|
-
var _default = SubHeading;
|
|
17
|
+
const SubHeading = _easywithstyle.default.h2`
|
|
18
|
+
|
|
19
|
+
margin: 1rem 0 0.5rem 0;
|
|
20
|
+
font-size: 2rem;
|
|
21
|
+
|
|
22
|
+
:first-of-type {
|
|
23
|
+
margin-top: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
`;
|
|
27
|
+
const _default = SubHeading;
|
|
38
28
|
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvc3ViSGVhZGluZy5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHdpdGhTdHlsZSBmcm9tIFwiZWFzeS13aXRoLXN0eWxlXCI7ICAvLy9cblxuY29uc3QgU3ViSGVhZGluZyA9IHdpdGhTdHlsZS5oMmBcblxuICBtYXJnaW46IDFyZW0gMCAwLjVyZW0gMDtcbiAgZm9udC1zaXplOiAycmVtO1xuICBcbiAgOmZpcnN0LW9mLXR5cGUge1xuICAgIG1hcmdpbi10b3A6IDA7XG4gIH1cblxuYDtcblxuZXhwb3J0IGRlZmF1bHQgU3ViSGVhZGluZztcbiJdLCJuYW1lcyI6WyJTdWJIZWFkaW5nIiwid2l0aFN0eWxlIiwiaDIiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQWVBOzs7ZUFBQTs7O3NFQWJzQjs7Ozs7O0FBRXRCLE1BQU1BLGFBQWFDLHNCQUFTLENBQUNDLEVBQUUsQ0FBQzs7Ozs7Ozs7O0FBU2hDLENBQUM7TUFFRCxXQUFlRiJ9
|
|
@@ -8,135 +8,32 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return BNFTextarea;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _call_super(_this, derived, args) {
|
|
19
|
-
derived = _get_prototype_of(derived);
|
|
20
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
21
|
-
}
|
|
22
|
-
function _class_call_check(instance, Constructor) {
|
|
23
|
-
if (!(instance instanceof Constructor)) {
|
|
24
|
-
throw new TypeError("Cannot call a class as a function");
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function _defineProperties(target, props) {
|
|
28
|
-
for(var i = 0; i < props.length; i++){
|
|
29
|
-
var descriptor = props[i];
|
|
30
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
31
|
-
descriptor.configurable = true;
|
|
32
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
37
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
-
return Constructor;
|
|
40
|
-
}
|
|
41
|
-
function _define_property(obj, key, value) {
|
|
42
|
-
if (key in obj) {
|
|
43
|
-
Object.defineProperty(obj, key, {
|
|
44
|
-
value: value,
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true,
|
|
47
|
-
writable: true
|
|
48
|
-
});
|
|
49
|
-
} else {
|
|
50
|
-
obj[key] = value;
|
|
51
|
-
}
|
|
52
|
-
return obj;
|
|
53
|
-
}
|
|
54
|
-
function _get_prototype_of(o) {
|
|
55
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
56
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
57
|
-
};
|
|
58
|
-
return _get_prototype_of(o);
|
|
59
|
-
}
|
|
60
|
-
function _inherits(subClass, superClass) {
|
|
61
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
62
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
63
|
-
}
|
|
64
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
65
|
-
constructor: {
|
|
66
|
-
value: subClass,
|
|
67
|
-
writable: true,
|
|
68
|
-
configurable: true
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
72
|
-
}
|
|
11
|
+
const _textarea = /*#__PURE__*/ _interop_require_default(require("../textarea"));
|
|
73
12
|
function _interop_require_default(obj) {
|
|
74
13
|
return obj && obj.__esModule ? obj : {
|
|
75
14
|
default: obj
|
|
76
15
|
};
|
|
77
16
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
17
|
+
class BNFTextarea extends _textarea.default {
|
|
18
|
+
getBNF() {
|
|
19
|
+
const value = this.getValue(), bnf = value; ///
|
|
20
|
+
return bnf;
|
|
21
|
+
}
|
|
22
|
+
setBNF(bnf) {
|
|
23
|
+
const value = bnf;
|
|
24
|
+
this.setValue(value);
|
|
25
|
+
}
|
|
26
|
+
parentContext() {
|
|
27
|
+
const getBNF = this.getBNF.bind(this), setBNF = this.setBNF.bind(this);
|
|
28
|
+
return {
|
|
29
|
+
getBNF,
|
|
30
|
+
setBNF
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static defaultProperties = {
|
|
34
|
+
className: "bnf",
|
|
35
|
+
spellCheck: "false"
|
|
88
36
|
};
|
|
89
|
-
return _set_prototype_of(o, p);
|
|
90
|
-
}
|
|
91
|
-
function _type_of(obj) {
|
|
92
|
-
"@swc/helpers - typeof";
|
|
93
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
94
|
-
}
|
|
95
|
-
function _is_native_reflect_construct() {
|
|
96
|
-
try {
|
|
97
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
98
|
-
} catch (_) {}
|
|
99
|
-
return (_is_native_reflect_construct = function() {
|
|
100
|
-
return !!result;
|
|
101
|
-
})();
|
|
102
37
|
}
|
|
103
|
-
var BNFTextarea = /*#__PURE__*/ function(Textarea) {
|
|
104
|
-
_inherits(BNFTextarea, Textarea);
|
|
105
|
-
function BNFTextarea() {
|
|
106
|
-
_class_call_check(this, BNFTextarea);
|
|
107
|
-
return _call_super(this, BNFTextarea, arguments);
|
|
108
|
-
}
|
|
109
|
-
_create_class(BNFTextarea, [
|
|
110
|
-
{
|
|
111
|
-
key: "getBNF",
|
|
112
|
-
value: function getBNF() {
|
|
113
|
-
var value = this.getValue(), bnf = value; ///
|
|
114
|
-
return bnf;
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
key: "setBNF",
|
|
119
|
-
value: function setBNF(bnf) {
|
|
120
|
-
var value = bnf;
|
|
121
|
-
this.setValue(value);
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
key: "parentContext",
|
|
126
|
-
value: function parentContext() {
|
|
127
|
-
var getBNF = this.getBNF.bind(this), setBNF = this.setBNF.bind(this);
|
|
128
|
-
return {
|
|
129
|
-
getBNF: getBNF,
|
|
130
|
-
setBNF: setBNF
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
]);
|
|
135
|
-
return BNFTextarea;
|
|
136
|
-
}(_textarea.default);
|
|
137
|
-
_define_property(BNFTextarea, "defaultProperties", {
|
|
138
|
-
className: "bnf",
|
|
139
|
-
spellCheck: "false"
|
|
140
|
-
});
|
|
141
38
|
|
|
142
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvdGV4dGFyZWEvYm5mLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgVGV4dGFyZWEgZnJvbSBcIi4uL3RleHRhcmVhXCI7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIEJORlRleHRhcmVhIGV4dGVuZHMgVGV4dGFyZWEge1xuICBnZXRCTkYoKSB7XG4gICAgY29uc3QgdmFsdWU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Z0JBQWdCO1FBQ2QsTUFBTU4sU0FBUyxJQUFJLENBQUNBLE1BQU0sQ0FBQ08sSUFBSSxDQUFDLElBQUksR0FDOUJILFNBQVMsSUFBSSxDQUFDQSxNQUFNLENBQUNHLElBQUksQ0FBQyxJQUFJO1FBRXBDLE9BQVE7WUFDTlA7WUFDQUk7UUFDRjtJQUNGO0lBRUEsT0FBT0ksb0JBQW9CO1FBQ3pCQyxXQUFXO1FBQ1hDLFlBQVk7SUFDZCxFQUFFO0FBQ0oifQ==
|
|
@@ -8,135 +8,32 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return LexicalEntriesTextarea;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _call_super(_this, derived, args) {
|
|
19
|
-
derived = _get_prototype_of(derived);
|
|
20
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
21
|
-
}
|
|
22
|
-
function _class_call_check(instance, Constructor) {
|
|
23
|
-
if (!(instance instanceof Constructor)) {
|
|
24
|
-
throw new TypeError("Cannot call a class as a function");
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function _defineProperties(target, props) {
|
|
28
|
-
for(var i = 0; i < props.length; i++){
|
|
29
|
-
var descriptor = props[i];
|
|
30
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
31
|
-
descriptor.configurable = true;
|
|
32
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
37
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
-
return Constructor;
|
|
40
|
-
}
|
|
41
|
-
function _define_property(obj, key, value) {
|
|
42
|
-
if (key in obj) {
|
|
43
|
-
Object.defineProperty(obj, key, {
|
|
44
|
-
value: value,
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true,
|
|
47
|
-
writable: true
|
|
48
|
-
});
|
|
49
|
-
} else {
|
|
50
|
-
obj[key] = value;
|
|
51
|
-
}
|
|
52
|
-
return obj;
|
|
53
|
-
}
|
|
54
|
-
function _get_prototype_of(o) {
|
|
55
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
56
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
57
|
-
};
|
|
58
|
-
return _get_prototype_of(o);
|
|
59
|
-
}
|
|
60
|
-
function _inherits(subClass, superClass) {
|
|
61
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
62
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
63
|
-
}
|
|
64
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
65
|
-
constructor: {
|
|
66
|
-
value: subClass,
|
|
67
|
-
writable: true,
|
|
68
|
-
configurable: true
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
72
|
-
}
|
|
11
|
+
const _textarea = /*#__PURE__*/ _interop_require_default(require("../textarea"));
|
|
73
12
|
function _interop_require_default(obj) {
|
|
74
13
|
return obj && obj.__esModule ? obj : {
|
|
75
14
|
default: obj
|
|
76
15
|
};
|
|
77
16
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
17
|
+
class LexicalEntriesTextarea extends _textarea.default {
|
|
18
|
+
getLexicalEntries() {
|
|
19
|
+
const value = this.getValue(), lexicalEntries = JSON.parse(value);
|
|
20
|
+
return lexicalEntries;
|
|
21
|
+
}
|
|
22
|
+
setLexicalEntries(lexicalEntries) {
|
|
23
|
+
const value = JSON.stringify(lexicalEntries, null, " ");
|
|
24
|
+
this.setValue(value);
|
|
25
|
+
}
|
|
26
|
+
parentContext() {
|
|
27
|
+
const getLexicalEntries = this.getLexicalEntries.bind(this), setLexicalEntries = this.setLexicalEntries.bind(this);
|
|
28
|
+
return {
|
|
29
|
+
getLexicalEntries,
|
|
30
|
+
setLexicalEntries
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static defaultProperties = {
|
|
34
|
+
className: "lexical-entries",
|
|
35
|
+
spellCheck: "false"
|
|
88
36
|
};
|
|
89
|
-
return _set_prototype_of(o, p);
|
|
90
|
-
}
|
|
91
|
-
function _type_of(obj) {
|
|
92
|
-
"@swc/helpers - typeof";
|
|
93
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
94
|
-
}
|
|
95
|
-
function _is_native_reflect_construct() {
|
|
96
|
-
try {
|
|
97
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
98
|
-
} catch (_) {}
|
|
99
|
-
return (_is_native_reflect_construct = function() {
|
|
100
|
-
return !!result;
|
|
101
|
-
})();
|
|
102
37
|
}
|
|
103
|
-
var LexicalEntriesTextarea = /*#__PURE__*/ function(Textarea) {
|
|
104
|
-
_inherits(LexicalEntriesTextarea, Textarea);
|
|
105
|
-
function LexicalEntriesTextarea() {
|
|
106
|
-
_class_call_check(this, LexicalEntriesTextarea);
|
|
107
|
-
return _call_super(this, LexicalEntriesTextarea, arguments);
|
|
108
|
-
}
|
|
109
|
-
_create_class(LexicalEntriesTextarea, [
|
|
110
|
-
{
|
|
111
|
-
key: "getLexicalEntries",
|
|
112
|
-
value: function getLexicalEntries() {
|
|
113
|
-
var value = this.getValue(), lexicalEntries = JSON.parse(value);
|
|
114
|
-
return lexicalEntries;
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
key: "setLexicalEntries",
|
|
119
|
-
value: function setLexicalEntries(lexicalEntries) {
|
|
120
|
-
var value = JSON.stringify(lexicalEntries, null, " ");
|
|
121
|
-
this.setValue(value);
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
key: "parentContext",
|
|
126
|
-
value: function parentContext() {
|
|
127
|
-
var getLexicalEntries = this.getLexicalEntries.bind(this), setLexicalEntries = this.setLexicalEntries.bind(this);
|
|
128
|
-
return {
|
|
129
|
-
getLexicalEntries: getLexicalEntries,
|
|
130
|
-
setLexicalEntries: setLexicalEntries
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
]);
|
|
135
|
-
return LexicalEntriesTextarea;
|
|
136
|
-
}(_textarea.default);
|
|
137
|
-
_define_property(LexicalEntriesTextarea, "defaultProperties", {
|
|
138
|
-
className: "lexical-entries",
|
|
139
|
-
spellCheck: "false"
|
|
140
|
-
});
|
|
141
38
|
|
|
142
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvdGV4dGFyZWEvbGV4aWNhbEVudHJpZXMuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBUZXh0YXJlYSBmcm9tIFwiLi4vdGV4dGFyZWFcIjtcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgTGV4aWNhbEVudHJpZXNUZXh0YXJlYSBleHRlbmRzIFRleHRhcmVhIHtcbiAgZ2V0TGV4aWNhbEVudHJpZXMoKSB7XG4gICAgY29uc3QgdmFsdWUgPSB0aGlzLmdldFZhbHVlKCksXG4gICAgICAgICAgbGV4aWNhbEV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0FBRU4sTUFBTUEsK0JBQStCQyxpQkFBUTtJQUMxREMsb0JBQW9CO1FBQ2xCLE1BQU1DLFFBQVEsSUFBSSxDQUFDQyxRQUFRLElBQ3JCQyxpQkFBaUJDLEtBQUtDLEtBQUssQ0FBQ0o7UUFFbEMsT0FBT0U7SUFDVDtJQUVBRyxrQkFBa0JILGNBQWMsRUFBRTtRQUNoQyxNQUFNRixRQUFRRyxLQUFLRyxTQUFTLENBQUNKLGdCQUFnQixNQUFNO1FBRW5ELElBQUksQ0FBQ0ssUUFBUSxDQUFDUDtJQUNoQjtJQUVBUSxnQkFBZ0I7UUFDZCxNQUFNVCxvQkFBb0IsSUFBSSxDQUFDQSxpQkFBaUIsQ0FBQ1UsSUFBSSxDQUFDLElBQUksR0FDcERKLG9CQUFvQixJQUFJLENBQUNBLGlCQUFpQixDQUFDSSxJQUFJLENBQUMsSUFBSTtRQUUxRCxPQUFRO1lBQ05WO1lBQ0FNO1FBQ0Y7SUFDRjtJQUVBLE9BQU9LLG9CQUFvQjtRQUN6QkMsV0FBVztRQUNYQyxZQUFZO0lBQ2QsRUFBRTtBQUNKIn0=
|
|
@@ -8,142 +8,39 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return ParseTreeTextarea;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function _assert_this_initialized(self) {
|
|
14
|
-
if (self === void 0) {
|
|
15
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
-
}
|
|
17
|
-
return self;
|
|
18
|
-
}
|
|
19
|
-
function _call_super(_this, derived, args) {
|
|
20
|
-
derived = _get_prototype_of(derived);
|
|
21
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
-
}
|
|
23
|
-
function _class_call_check(instance, Constructor) {
|
|
24
|
-
if (!(instance instanceof Constructor)) {
|
|
25
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _defineProperties(target, props) {
|
|
29
|
-
for(var i = 0; i < props.length; i++){
|
|
30
|
-
var descriptor = props[i];
|
|
31
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32
|
-
descriptor.configurable = true;
|
|
33
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
38
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
-
return Constructor;
|
|
41
|
-
}
|
|
42
|
-
function _define_property(obj, key, value) {
|
|
43
|
-
if (key in obj) {
|
|
44
|
-
Object.defineProperty(obj, key, {
|
|
45
|
-
value: value,
|
|
46
|
-
enumerable: true,
|
|
47
|
-
configurable: true,
|
|
48
|
-
writable: true
|
|
49
|
-
});
|
|
50
|
-
} else {
|
|
51
|
-
obj[key] = value;
|
|
52
|
-
}
|
|
53
|
-
return obj;
|
|
54
|
-
}
|
|
55
|
-
function _get_prototype_of(o) {
|
|
56
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
57
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
58
|
-
};
|
|
59
|
-
return _get_prototype_of(o);
|
|
60
|
-
}
|
|
61
|
-
function _inherits(subClass, superClass) {
|
|
62
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
63
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
64
|
-
}
|
|
65
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
66
|
-
constructor: {
|
|
67
|
-
value: subClass,
|
|
68
|
-
writable: true,
|
|
69
|
-
configurable: true
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
73
|
-
}
|
|
11
|
+
const _textarea = /*#__PURE__*/ _interop_require_default(require("../textarea"));
|
|
12
|
+
const _constants = require("../../constants");
|
|
74
13
|
function _interop_require_default(obj) {
|
|
75
14
|
return obj && obj.__esModule ? obj : {
|
|
76
15
|
default: obj
|
|
77
16
|
};
|
|
78
17
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
18
|
+
class ParseTreeTextarea extends _textarea.default {
|
|
19
|
+
setParseTree(parseTree) {
|
|
20
|
+
if (parseTree !== null) {
|
|
21
|
+
parseTree.shiftLine(); //
|
|
22
|
+
const parseTreeString = parseTree.asString(), value = parseTreeString; ///
|
|
23
|
+
this.setValue(value);
|
|
24
|
+
} else {
|
|
25
|
+
this.clearParseTree();
|
|
26
|
+
}
|
|
82
27
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
28
|
+
clearParseTree() {
|
|
29
|
+
const value = _constants.EMPTY_STRING;
|
|
30
|
+
this.setValue(value);
|
|
31
|
+
}
|
|
32
|
+
parentContext() {
|
|
33
|
+
const setParseTree = this.setParseTree.bind(this), clearParseTree = this.clearParseTree.bind(this);
|
|
34
|
+
return {
|
|
35
|
+
setParseTree,
|
|
36
|
+
clearParseTree
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
static defaultProperties = {
|
|
40
|
+
className: "tokens",
|
|
41
|
+
spellCheck: "false",
|
|
42
|
+
readOnly: true
|
|
89
43
|
};
|
|
90
|
-
return _set_prototype_of(o, p);
|
|
91
44
|
}
|
|
92
|
-
function _type_of(obj) {
|
|
93
|
-
"@swc/helpers - typeof";
|
|
94
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
95
|
-
}
|
|
96
|
-
function _is_native_reflect_construct() {
|
|
97
|
-
try {
|
|
98
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
99
|
-
} catch (_) {}
|
|
100
|
-
return (_is_native_reflect_construct = function() {
|
|
101
|
-
return !!result;
|
|
102
|
-
})();
|
|
103
|
-
}
|
|
104
|
-
var ParseTreeTextarea = /*#__PURE__*/ function(Textarea) {
|
|
105
|
-
_inherits(ParseTreeTextarea, Textarea);
|
|
106
|
-
function ParseTreeTextarea() {
|
|
107
|
-
_class_call_check(this, ParseTreeTextarea);
|
|
108
|
-
return _call_super(this, ParseTreeTextarea, arguments);
|
|
109
|
-
}
|
|
110
|
-
_create_class(ParseTreeTextarea, [
|
|
111
|
-
{
|
|
112
|
-
key: "setParseTree",
|
|
113
|
-
value: function setParseTree(parseTree) {
|
|
114
|
-
if (parseTree !== null) {
|
|
115
|
-
parseTree.shiftLine(); //
|
|
116
|
-
var parseTreeString = parseTree.asString(), value = parseTreeString; ///
|
|
117
|
-
this.setValue(value);
|
|
118
|
-
} else {
|
|
119
|
-
this.clearParseTree();
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
key: "clearParseTree",
|
|
125
|
-
value: function clearParseTree() {
|
|
126
|
-
var value = _constants.EMPTY_STRING;
|
|
127
|
-
this.setValue(value);
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
key: "parentContext",
|
|
132
|
-
value: function parentContext() {
|
|
133
|
-
var setParseTree = this.setParseTree.bind(this), clearParseTree = this.clearParseTree.bind(this);
|
|
134
|
-
return {
|
|
135
|
-
setParseTree: setParseTree,
|
|
136
|
-
clearParseTree: clearParseTree
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
]);
|
|
141
|
-
return ParseTreeTextarea;
|
|
142
|
-
}(_textarea.default);
|
|
143
|
-
_define_property(ParseTreeTextarea, "defaultProperties", {
|
|
144
|
-
className: "tokens",
|
|
145
|
-
spellCheck: "false",
|
|
146
|
-
readOnly: true
|
|
147
|
-
});
|
|
148
45
|
|
|
149
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvdGV4dGFyZWEvcGFyc2VUcmVlLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgVGV4dGFyZWEgZnJvbSBcIi4uL3RleHRhcmVhXCI7XG5cbmltcG9ydCB7IEVNUFRZX1NUUklORyB9IGZyb20gXCIuLi8uLi9jb25zdGFudHNcIjtcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgUGFyc2VUcmVlVGV4dGFyZWEgZXh0ZW5kcyBUZXh0YXJlYSB7XG4gIHNldFBhcnNlVHJlZShwYXJzZVRyZWUpIHtcbiAgICBpZiAocGFyc2VUcmVlICE9PSBudWxsKSB7XG4gICAgICBwYXJzZVRyZWUuc2hpZnRMaW5lKCk7ICAvL1xuXG4gICAgICBjb25zdCBwYXJzZVRyZWVTdHJpbmcgPSBwYXJzZVRyZWUuYXNTdHJpbmcoKSxcbiAgICAgICAgICAgIHZhbHVlID0gcGFyc2VUcmVlU3RyaW5nOyAgLy8vXG5cbiAgICAgIHRoaXMuc2V0VmFsdWUodmFsdWUpO1xuICAgIH0gZWxzZSB7XG4gICAgICB0aGlzLmNsZWFyUGFyc2VUcmVlKCk7XG4gICAgfVxuICB9XG5cbiAgY2xlYXJQYXJzZVRyZWUoKSB7XG4gICAgY29uc3QgdmFsdWUgPSBFTVBUWV9TVFJJTkc7XG5cbiAgICB0aGlzLnNldFZhbHVlKHZhbHVlKTtcbiAgfVxuXG4gIHBhcmVudENvbnRleHQoKSB7XG4gICAgY29uc3Qgc2V0UGFyc2VUcmVlID0gdGhpcy5zZXRQYXJzZVRyZWUuYmluZCh0aGlzKSxcbiAgICAgICAgICBjbGVhclBhcnNlVHJlZSA9IHRoaXMuY2xl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