highmark-markdown 1.0.169 → 1.0.170
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/example.js +6921 -3362
- package/lib/classFromOuterNode.js +30 -0
- package/lib/constants.js +5 -1
- package/lib/example/constants.js +5 -1
- package/lib/example/view/button/page.js +2 -2
- package/lib/example/view/div/container/markdown.js +33 -4
- package/lib/example/view/div/container/markdownStyle.js +31 -2
- package/lib/example/view/div/container/preview.js +3 -9
- package/lib/example/view/div/container.js +2 -2
- package/lib/example/view/div/html.js +2 -2
- package/lib/example/view/div/pageButtons.js +2 -2
- package/lib/example/view/div/preview.js +1 -14
- package/lib/example/view/textarea/css.js +2 -2
- package/lib/example/view/textarea/markdown.js +2 -2
- package/lib/example/view/textarea/markdownStyle.js +2 -2
- package/lib/example/view/textarea/parseTree/markdown/inner.js +179 -0
- package/lib/example/view/textarea/parseTree/markdown/outer.js +148 -0
- package/lib/example/view/textarea/parseTree/markdown.js +1 -27
- package/lib/example/view/textarea/parseTree/markdownStyle.js +23 -2
- package/lib/example/view/textarea/parseTree.js +2 -2
- package/lib/example/view/textarea/plainText.js +2 -2
- package/lib/example/view/textarea.js +2 -2
- package/lib/example/view.js +20 -10
- package/lib/node/html/anchor.js +154 -0
- package/lib/node/html/blockLine.js +134 -0
- package/lib/node/html/blockListing.js +127 -0
- package/lib/node/html/blockListingEnd.js +120 -0
- package/lib/node/html/blockListingStart.js +120 -0
- package/lib/node/html/className.js +120 -0
- package/lib/node/html/comma.js +127 -0
- package/lib/node/html/contentsLink.js +136 -0
- package/lib/node/html/directive/pageNumber.js +178 -0
- package/lib/node/html/item/ordered.js +135 -0
- package/lib/node/html/topmost.js +123 -0
- package/lib/node/html.js +281 -0
- package/lib/node/markdown/anchor.js +1 -34
- package/lib/node/markdown/blockLine.js +1 -15
- package/lib/node/markdown/blockListing.js +1 -8
- package/lib/node/markdown/comma.js +1 -8
- package/lib/node/markdown/contentsLink.js +1 -17
- package/lib/node/markdown/directive/pageNumber.js +1 -16
- package/lib/node/markdown/item/ordered.js +1 -16
- package/lib/node/markdown.js +1 -66
- package/lib/queries.js +60 -0
- package/lib/ruleNameToClassMap.js +44 -0
- package/lib/utilities/query.js +12 -1
- package/package.json +4 -4
- package/src/classFromOuterNode.js +20 -0
- package/src/constants.js +1 -0
- package/src/example/constants.js +1 -0
- package/src/example/view/button/page.js +1 -1
- package/src/example/view/div/container/markdown.js +23 -4
- package/src/example/view/div/container/markdownStyle.js +21 -2
- package/src/example/view/div/container/preview.js +1 -9
- package/src/example/view/div/container.js +2 -0
- package/src/example/view/div/html.js +1 -1
- package/src/example/view/div/pageButtons.js +2 -2
- package/src/example/view/div/preview.js +0 -17
- package/src/example/view/textarea/css.js +1 -1
- package/src/example/view/textarea/markdown.js +2 -2
- package/src/example/view/textarea/markdownStyle.js +2 -2
- package/src/example/view/textarea/parseTree/markdown/inner.js +36 -0
- package/src/example/view/textarea/parseTree/markdown/outer.js +27 -0
- package/src/example/view/textarea/parseTree/markdown.js +1 -11
- package/src/example/view/textarea/parseTree/markdownStyle.js +10 -2
- package/src/example/view/textarea/parseTree.js +0 -2
- package/src/example/view/textarea/plainText.js +2 -2
- package/src/example/view/textarea.js +1 -1
- package/src/example/view.js +38 -19
- package/src/node/html/anchor.js +53 -0
- package/src/node/html/blockLine.js +27 -0
- package/src/node/html/blockListing.js +20 -0
- package/src/node/html/blockListingEnd.js +11 -0
- package/src/node/html/blockListingStart.js +11 -0
- package/src/node/html/className.js +11 -0
- package/src/node/html/comma.js +18 -0
- package/src/node/html/contentsLink.js +28 -0
- package/src/node/html/directive/pageNumber.js +55 -0
- package/src/node/html/item/ordered.js +26 -0
- package/src/node/html/topmost.js +20 -0
- package/src/node/html.js +183 -0
- package/src/node/markdown/anchor.js +0 -40
- package/src/node/markdown/blockLine.js +0 -16
- package/src/node/markdown/blockListing.js +0 -9
- package/src/node/markdown/comma.js +0 -7
- package/src/node/markdown/contentsLink.js +0 -15
- package/src/node/markdown/directive/pageNumber.js +0 -19
- package/src/node/markdown/item/ordered.js +0 -15
- package/src/node/markdown.js +0 -100
- package/src/queries.js +94 -0
- package/src/ruleNameToClassMap.js +38 -0
- package/src/utilities/query.js +12 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return BlockListingHEndHTMLNode;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _html = /*#__PURE__*/ _interop_require_default(require("../../node/html"));
|
|
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 _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
|
+
}
|
|
60
|
+
function _interop_require_default(obj) {
|
|
61
|
+
return obj && obj.__esModule ? obj : {
|
|
62
|
+
default: obj
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function _possible_constructor_return(self, call) {
|
|
66
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
67
|
+
return call;
|
|
68
|
+
}
|
|
69
|
+
return _assert_this_initialized(self);
|
|
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;
|
|
75
|
+
};
|
|
76
|
+
return _set_prototype_of(o, p);
|
|
77
|
+
}
|
|
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 BlockListingHEndHTMLNode = /*#__PURE__*/ function(HHTMLNode) {
|
|
91
|
+
_inherits(BlockListingHEndHTMLNode, HHTMLNode);
|
|
92
|
+
function BlockListingHEndHTMLNode() {
|
|
93
|
+
_class_call_check(this, BlockListingHEndHTMLNode);
|
|
94
|
+
return _call_super(this, BlockListingHEndHTMLNode, arguments);
|
|
95
|
+
}
|
|
96
|
+
_create_class(BlockListingHEndHTMLNode, [
|
|
97
|
+
{
|
|
98
|
+
key: "className",
|
|
99
|
+
value: function className(context) {
|
|
100
|
+
return this.outerNode.className(context);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
], [
|
|
104
|
+
{
|
|
105
|
+
key: "fromNothing",
|
|
106
|
+
value: function fromNothing() {
|
|
107
|
+
return _html.default.fromNothing(BlockListingHEndHTMLNode);
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
key: "fromOuterNode",
|
|
112
|
+
value: function fromOuterNode(outerNode) {
|
|
113
|
+
return _html.default.fromOuterNode(BlockListingHEndHTMLNode, outerNode);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
]);
|
|
117
|
+
return BlockListingHEndHTMLNode;
|
|
118
|
+
}(_html.default);
|
|
119
|
+
|
|
120
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ub2RlL2h0bWwvYmxvY2tMaXN0aW5nRW5kLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgSEhUTUxOb2RlIGZyb20gXCIuLi8uLi9ub2RlL2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QUNELFdBQVcsQ0FIaENKO1lBRzREOzs7WUFFeEVNLEtBQUFBO21CQUFQLFNBQU9BLGNBQWNILFNBQVM7Z0JBQUksT0FBT0UsYUFBUyxDQUFDQyxhQUFhLENBTDdDTiwwQkFLd0VHO1lBQVk7OztXQUxwRkg7RUFBaUNLLGFBQVMifQ==
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return BlockListingHStartHTMLNode;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _html = /*#__PURE__*/ _interop_require_default(require("../../node/html"));
|
|
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 _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
|
+
}
|
|
60
|
+
function _interop_require_default(obj) {
|
|
61
|
+
return obj && obj.__esModule ? obj : {
|
|
62
|
+
default: obj
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function _possible_constructor_return(self, call) {
|
|
66
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
67
|
+
return call;
|
|
68
|
+
}
|
|
69
|
+
return _assert_this_initialized(self);
|
|
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;
|
|
75
|
+
};
|
|
76
|
+
return _set_prototype_of(o, p);
|
|
77
|
+
}
|
|
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 BlockListingHStartHTMLNode = /*#__PURE__*/ function(HHTMLNode) {
|
|
91
|
+
_inherits(BlockListingHStartHTMLNode, HHTMLNode);
|
|
92
|
+
function BlockListingHStartHTMLNode() {
|
|
93
|
+
_class_call_check(this, BlockListingHStartHTMLNode);
|
|
94
|
+
return _call_super(this, BlockListingHStartHTMLNode, arguments);
|
|
95
|
+
}
|
|
96
|
+
_create_class(BlockListingHStartHTMLNode, [
|
|
97
|
+
{
|
|
98
|
+
key: "className",
|
|
99
|
+
value: function className(context) {
|
|
100
|
+
return this.outerNode.className(context);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
], [
|
|
104
|
+
{
|
|
105
|
+
key: "fromNothing",
|
|
106
|
+
value: function fromNothing() {
|
|
107
|
+
return _html.default.fromNothing(BlockListingHStartHTMLNode);
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
key: "fromOuterNode",
|
|
112
|
+
value: function fromOuterNode(outerNode) {
|
|
113
|
+
return _html.default.fromOuterNode(BlockListingHStartHTMLNode, outerNode);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
]);
|
|
117
|
+
return BlockListingHStartHTMLNode;
|
|
118
|
+
}(_html.default);
|
|
119
|
+
|
|
120
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ub2RlL2h0bWwvYmxvY2tMaXN0aW5nU3RhcnQuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0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QUFVOzs7O1lBRXhERSxLQUFBQTttQkFBUCxTQUFPQTtnQkFBZ0IsT0FBT0MsYUFBUyxDQUFDRCxXQUFXLENBSGhDSjtZQUc4RDs7O1lBRTFFTSxLQUFBQTttQkFBUCxTQUFPQSxjQUFjSCxTQUFTO2dCQUFJLE9BQU9FLGFBQVMsQ0FBQ0MsYUFBYSxDQUw3Q04sNEJBSzBFRztZQUFZOzs7V0FMdEZIO0VBQW1DSyxhQUFTIn0=
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return ClassNameHTMLNode;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _html = /*#__PURE__*/ _interop_require_default(require("../../node/html"));
|
|
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 _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
|
+
}
|
|
60
|
+
function _interop_require_default(obj) {
|
|
61
|
+
return obj && obj.__esModule ? obj : {
|
|
62
|
+
default: obj
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function _possible_constructor_return(self, call) {
|
|
66
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
67
|
+
return call;
|
|
68
|
+
}
|
|
69
|
+
return _assert_this_initialized(self);
|
|
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;
|
|
75
|
+
};
|
|
76
|
+
return _set_prototype_of(o, p);
|
|
77
|
+
}
|
|
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 ClassNameHTMLNode = /*#__PURE__*/ function(HTMLNode) {
|
|
91
|
+
_inherits(ClassNameHTMLNode, HTMLNode);
|
|
92
|
+
function ClassNameHTMLNode() {
|
|
93
|
+
_class_call_check(this, ClassNameHTMLNode);
|
|
94
|
+
return _call_super(this, ClassNameHTMLNode, arguments);
|
|
95
|
+
}
|
|
96
|
+
_create_class(ClassNameHTMLNode, [
|
|
97
|
+
{
|
|
98
|
+
key: "className",
|
|
99
|
+
value: function className(context) {
|
|
100
|
+
return this.outerNode.className(context);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
], [
|
|
104
|
+
{
|
|
105
|
+
key: "fromNothing",
|
|
106
|
+
value: function fromNothing() {
|
|
107
|
+
return _html.default.fromNothing(ClassNameHTMLNode);
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
key: "fromOuterNode",
|
|
112
|
+
value: function fromOuterNode(outerNode) {
|
|
113
|
+
return _html.default.fromOuterNode(ClassNameHTMLNode, outerNode);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
]);
|
|
117
|
+
return ClassNameHTMLNode;
|
|
118
|
+
}(_html.default);
|
|
119
|
+
|
|
120
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ub2RlL2h0bWwvY2xhc3NOYW1lLmpzIl0sInNvdXJjZX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FBO21CQUFQLFNBQU9BO2dCQUFnQixPQUFPQyxhQUFRLENBQUNELFdBQVcsQ0FIL0JKO1lBR29EOzs7WUFFaEVNLEtBQUFBO21CQUFQLFNBQU9BLGNBQWNILFNBQVM7Z0JBQUksT0FBT0UsYUFBUSxDQUFDQyxhQUFhLENBTDVDTixtQkFLZ0VHO1lBQVk7OztXQUw1RUg7RUFBMEJLLGFBQVEifQ==
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return CommaHTMLNode;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _html = /*#__PURE__*/ _interop_require_default(require("../../node/html"));
|
|
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 _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
|
+
}
|
|
60
|
+
function _interop_require_default(obj) {
|
|
61
|
+
return obj && obj.__esModule ? obj : {
|
|
62
|
+
default: obj
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function _possible_constructor_return(self, call) {
|
|
66
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
67
|
+
return call;
|
|
68
|
+
}
|
|
69
|
+
return _assert_this_initialized(self);
|
|
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;
|
|
75
|
+
};
|
|
76
|
+
return _set_prototype_of(o, p);
|
|
77
|
+
}
|
|
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 CommaHTMLNode = /*#__PURE__*/ function(HTMLNode) {
|
|
91
|
+
_inherits(CommaHTMLNode, HTMLNode);
|
|
92
|
+
function CommaHTMLNode() {
|
|
93
|
+
_class_call_check(this, CommaHTMLNode);
|
|
94
|
+
return _call_super(this, CommaHTMLNode, arguments);
|
|
95
|
+
}
|
|
96
|
+
_create_class(CommaHTMLNode, [
|
|
97
|
+
{
|
|
98
|
+
key: "content",
|
|
99
|
+
value: function content(context) {
|
|
100
|
+
return this.outerNode.content(context);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
key: "asHTML",
|
|
105
|
+
value: function asHTML(indent, context) {
|
|
106
|
+
var content = this.content(context), html = content; ///
|
|
107
|
+
return html;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
], [
|
|
111
|
+
{
|
|
112
|
+
key: "fromNothing",
|
|
113
|
+
value: function fromNothing() {
|
|
114
|
+
return _html.default.fromNothing(CommaHTMLNode);
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
key: "fromOuterNode",
|
|
119
|
+
value: function fromOuterNode(outerNode) {
|
|
120
|
+
return _html.default.fromOuterNode(CommaHTMLNode, outerNode);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
]);
|
|
124
|
+
return CommaHTMLNode;
|
|
125
|
+
}(_html.default);
|
|
126
|
+
|
|
127
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3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s7Ozs7QUFFTixJQUFBLEFBQU1BLDhCQUFOO2NBQU1BO2FBQUFBO2dDQUFBQTtlQUFOLGtCQUFNQTs7a0JBQUFBOztZQUNuQkMsS0FBQUE7bUJBQUFBLFNBQUFBLFFBQVFDLE9BQU87Z0JBQUksT0FBTyxJQUFJLENBQUNDLFNBQVMsQ0FBQ0YsT0FBTyxDQUFDQztZQUFVOzs7WUFFM0RFLEtBQUFBO21CQUFBQSxTQUFBQSxPQUFPQyxNQUFNLEVBQUVILE9BQU87Z0JBQ3BCLElBQU1ELFVBQVUsSUFBSSxDQUFDQSxPQUFPLENBQUNDLFVBQ3ZCSSxPQUFPTCxTQUFTLEdBQUc7Z0JBRXpCLE9BQU9LO1lBQ1Q7Ozs7WUFFT0MsS0FBQUE7bUJBQVAsU0FBT0E7Z0JBQWdCLE9BQU9DLGFBQVEsQ0FBQ0QsV0FBVyxDQVYvQlA7WUFVZ0Q7OztZQUU1RFMsS0FBQUE7bUJBQVAsU0FBT0EsY0FBY04sU0FBUztnQkFBSSxPQUFPSyxhQUFRLENBQUNDLGFBQWEsQ0FaNUNULGVBWTRERztZQUFZOzs7V0FaeEVIO0VBQXNCUSxhQUFRIn0=
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return ContentsLinkHTMLNode;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _html = /*#__PURE__*/ _interop_require_default(require("../../node/html"));
|
|
12
|
+
var _prepends = require("../../prepends");
|
|
13
|
+
var _attributeNames = require("../../attributeNames");
|
|
14
|
+
function _assert_this_initialized(self) {
|
|
15
|
+
if (self === void 0) {
|
|
16
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17
|
+
}
|
|
18
|
+
return self;
|
|
19
|
+
}
|
|
20
|
+
function _call_super(_this, derived, args) {
|
|
21
|
+
derived = _get_prototype_of(derived);
|
|
22
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
23
|
+
}
|
|
24
|
+
function _class_call_check(instance, Constructor) {
|
|
25
|
+
if (!(instance instanceof Constructor)) {
|
|
26
|
+
throw new TypeError("Cannot call a class as a function");
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function _defineProperties(target, props) {
|
|
30
|
+
for(var i = 0; i < props.length; i++){
|
|
31
|
+
var descriptor = props[i];
|
|
32
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
33
|
+
descriptor.configurable = true;
|
|
34
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
35
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
39
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
40
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
41
|
+
return Constructor;
|
|
42
|
+
}
|
|
43
|
+
function _get_prototype_of(o) {
|
|
44
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
45
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46
|
+
};
|
|
47
|
+
return _get_prototype_of(o);
|
|
48
|
+
}
|
|
49
|
+
function _inherits(subClass, superClass) {
|
|
50
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
51
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
52
|
+
}
|
|
53
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
54
|
+
constructor: {
|
|
55
|
+
value: subClass,
|
|
56
|
+
writable: true,
|
|
57
|
+
configurable: true
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
|
+
}
|
|
62
|
+
function _interop_require_default(obj) {
|
|
63
|
+
return obj && obj.__esModule ? obj : {
|
|
64
|
+
default: obj
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function _possible_constructor_return(self, call) {
|
|
68
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
69
|
+
return call;
|
|
70
|
+
}
|
|
71
|
+
return _assert_this_initialized(self);
|
|
72
|
+
}
|
|
73
|
+
function _set_prototype_of(o, p) {
|
|
74
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
75
|
+
o.__proto__ = p;
|
|
76
|
+
return o;
|
|
77
|
+
};
|
|
78
|
+
return _set_prototype_of(o, p);
|
|
79
|
+
}
|
|
80
|
+
function _type_of(obj) {
|
|
81
|
+
"@swc/helpers - typeof";
|
|
82
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
83
|
+
}
|
|
84
|
+
function _is_native_reflect_construct() {
|
|
85
|
+
try {
|
|
86
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
87
|
+
} catch (_) {}
|
|
88
|
+
return (_is_native_reflect_construct = function() {
|
|
89
|
+
return !!result;
|
|
90
|
+
})();
|
|
91
|
+
}
|
|
92
|
+
var ContentsLinkHTMLNode = /*#__PURE__*/ function(HTMLNode) {
|
|
93
|
+
_inherits(ContentsLinkHTMLNode, HTMLNode);
|
|
94
|
+
function ContentsLinkHTMLNode() {
|
|
95
|
+
_class_call_check(this, ContentsLinkHTMLNode);
|
|
96
|
+
return _call_super(this, ContentsLinkHTMLNode, arguments);
|
|
97
|
+
}
|
|
98
|
+
_create_class(ContentsLinkHTMLNode, [
|
|
99
|
+
{
|
|
100
|
+
key: "getIdentifier",
|
|
101
|
+
value: function getIdentifier() {
|
|
102
|
+
return this.outerNode.getIdentifier();
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
key: "attributeName",
|
|
107
|
+
value: function attributeName(context) {
|
|
108
|
+
var attributeName = _attributeNames.HREF_ATTRIBUTE_NAME;
|
|
109
|
+
return attributeName;
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
key: "attributeValue",
|
|
114
|
+
value: function attributeValue(context) {
|
|
115
|
+
var prepend = _prepends.CONTENTS_PREPEND, identifier = this.getIdentifier(), attributeValue = "#".concat(prepend, "-").concat(identifier);
|
|
116
|
+
return attributeValue;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
], [
|
|
120
|
+
{
|
|
121
|
+
key: "fromNothing",
|
|
122
|
+
value: function fromNothing() {
|
|
123
|
+
return _html.default.fromNothing(ContentsLinkHTMLNode);
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
key: "fromOuterNode",
|
|
128
|
+
value: function fromOuterNode(outerNode) {
|
|
129
|
+
return _html.default.fromOuterNode(ContentsLinkHTMLNode, outerNode);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
]);
|
|
133
|
+
return ContentsLinkHTMLNode;
|
|
134
|
+
}(_html.default);
|
|
135
|
+
|
|
136
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ub2RlL2h0bWwvY29udGVudHNMaW5rLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgSFRNTE5vZGUgZnJvbSBcIi4uLy4uL25vZGUvaHRtbFwiO1xuXG5pbXBvcnQgeyBDT05URU5UU19QUkVQRU5EIH0gZnJvbSBcIi4uLy4uL3ByZXBlbmRzXCI7XG5pbXBvcnQgeyBIUkVGX0FUVFJJQlVURV9OQU1FIH0gZnJvbSBcIi4uLy4uL2F0dHJpYnV0ZU5hbWVzXCI7XG5cbmV4cG9yd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