highmark-markdown 1.2.70 → 1.2.72
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 +7 -9
- package/.swcrc +4 -3
- package/example.js +11655 -33035
- package/lib/attributeNames.js +7 -7
- package/lib/constants.js +19 -19
- package/lib/example/constants.js +7 -7
- package/lib/example/customEventTypes.js +9 -9
- package/lib/example/importer.js +72 -28
- package/lib/example/indexOptions.js +3 -3
- package/lib/example/view/button/page.js +34 -135
- package/lib/example/view/button/tab/css.js +14 -114
- package/lib/example/view/button/tab/html.js +14 -114
- package/lib/example/view/button/tab/markdown.js +14 -114
- package/lib/example/view/button/tab/markdownStyle.js +14 -114
- package/lib/example/view/button/tab/plainText.js +14 -114
- package/lib/example/view/button/tab/preview.js +14 -114
- package/lib/example/view/button/tab.js +36 -136
- package/lib/example/view/div/container/css.js +15 -153
- package/lib/example/view/div/container/html.js +19 -157
- package/lib/example/view/div/container/markdown.js +38 -190
- package/lib/example/view/div/container/markdownStyle.js +39 -191
- package/lib/example/view/div/container/plainText.js +15 -153
- package/lib/example/view/div/container/preview.js +25 -177
- package/lib/example/view/div/container.js +20 -156
- package/lib/example/view/div/html.js +18 -173
- package/lib/example/view/div/pageButtons.js +63 -236
- package/lib/example/view/div/preview.js +58 -268
- package/lib/example/view/div/sizeable/left.js +13 -104
- package/lib/example/view/div/tabButtons/left.js +42 -161
- package/lib/example/view/div/tabButtons/right.js +75 -198
- package/lib/example/view/div/tabButtons.js +15 -172
- package/lib/example/view/textarea/css.js +29 -147
- package/lib/example/view/textarea/markdown.js +29 -145
- package/lib/example/view/textarea/markdownStyle.js +29 -145
- package/lib/example/view/textarea/parseTree/css.js +21 -132
- package/lib/example/view/textarea/parseTree/html.js +21 -132
- package/lib/example/view/textarea/parseTree/markdown.js +17 -129
- package/lib/example/view/textarea/parseTree/markdownStyle.js +17 -129
- package/lib/example/view/textarea/parseTree.js +20 -135
- package/lib/example/view/textarea/plainText.js +32 -153
- package/lib/example/view/textarea.js +16 -23
- package/lib/example/view/xmp.js +30 -187
- package/lib/example/view.js +281 -518
- package/lib/example.js +10 -10
- package/lib/index/item.js +25 -87
- package/lib/index/list.js +29 -62
- package/lib/index/match.js +23 -62
- package/lib/index.js +34 -34
- package/lib/letters.js +3 -3
- package/lib/map/className.js +6 -6
- package/lib/map/node/css.js +50 -42
- package/lib/map/node/html.js +108 -71
- package/lib/map/nonTerminalNode/markdown.js +49 -40
- package/lib/map/nonTerminalNode/markdownStyle.js +49 -40
- package/lib/map/tagName.js +6 -6
- package/lib/markdown/bnf.js +300 -3
- package/lib/markdown/entries.js +3 -3
- package/lib/markdown/lexer.js +23 -126
- package/lib/markdown/parser.js +18 -121
- package/lib/markdownStyle/bnf.js +80 -3
- package/lib/markdownStyle/entries.js +8 -8
- package/lib/markdownStyle/lexer.js +23 -126
- package/lib/markdownStyle/parser.js +18 -121
- package/lib/mixins/node.js +53 -53
- package/lib/mixins/token.js +13 -13
- package/lib/node/css/amount.js +16 -110
- package/lib/node/css/argument.js +8 -95
- package/lib/node/css/arguments.js +13 -127
- package/lib/node/css/class.js +13 -127
- package/lib/node/css/colour.js +16 -110
- package/lib/node/css/content.js +12 -103
- package/lib/node/css/declaration.js +19 -109
- package/lib/node/css/identifier.js +16 -110
- package/lib/node/css/name.js +13 -127
- package/lib/node/css/pseudoClass.js +13 -127
- package/lib/node/css/ruleName.js +43 -137
- package/lib/node/css/ruleSet.js +45 -139
- package/lib/node/css/selector.js +8 -95
- package/lib/node/css/selectors.js +19 -110
- package/lib/node/css/selectorsList.js +22 -115
- package/lib/node/css/string.js +16 -110
- package/lib/node/css/target.js +12 -103
- package/lib/node/css/topmost.js +70 -182
- package/lib/node/css/value.js +12 -126
- package/lib/node/css/values.js +16 -107
- package/lib/node/css/verbatim.js +35 -132
- package/lib/node/css.js +66 -275
- package/lib/node/html/anchor/contents.js +8 -92
- package/lib/node/html/anchor/footnote.js +8 -92
- package/lib/node/html/anchor/index.js +8 -92
- package/lib/node/html/anchor.js +38 -157
- package/lib/node/html/container.js +24 -154
- package/lib/node/html/directive/contents.js +8 -95
- package/lib/node/html/directive/footnotes.js +8 -95
- package/lib/node/html/directive/index.js +8 -95
- package/lib/node/html/directive/pageNumber.js +8 -95
- package/lib/node/html/directive.js +23 -123
- package/lib/node/html/division.js +127 -273
- package/lib/node/html/error.js +41 -179
- package/lib/node/html/footnote.js +40 -149
- package/lib/node/html/heading/index.js +61 -183
- package/lib/node/html/heading/primary.js +12 -112
- package/lib/node/html/heading/quaternary.js +12 -112
- package/lib/node/html/heading/secondary.js +12 -112
- package/lib/node/html/heading/tertiary.js +12 -112
- package/lib/node/html/heading.js +30 -147
- package/lib/node/html/image.js +76 -207
- package/lib/node/html/item/contents.js +20 -124
- package/lib/node/html/item/footnote.js +21 -125
- package/lib/node/html/item/index.js +39 -145
- package/lib/node/html/item/ordered.js +23 -133
- package/lib/node/html/item/unordered.js +10 -110
- package/lib/node/html/line/block.js +15 -119
- package/lib/node/html/line.js +89 -242
- package/lib/node/html/link/contents.js +36 -153
- package/lib/node/html/link/email.js +89 -243
- package/lib/node/html/link/footnote.js +94 -238
- package/lib/node/html/link/hyper.js +89 -243
- package/lib/node/html/link/index.js +67 -222
- package/lib/node/html/list/contents.js +20 -124
- package/lib/node/html/list/footnotes.js +40 -160
- package/lib/node/html/list/index.js +20 -124
- package/lib/node/html/list/ordered.js +10 -110
- package/lib/node/html/list/unordered.js +10 -110
- package/lib/node/html/listing/block.js +33 -177
- package/lib/node/html/listing/inline.js +35 -174
- package/lib/node/html/pageNumber.js +65 -216
- package/lib/node/html/paragraph.js +10 -110
- package/lib/node/html/reference.js +10 -110
- package/lib/node/html/table.js +10 -110
- package/lib/node/html/tableBody.js +10 -110
- package/lib/node/html/tableBodyCell.js +10 -110
- package/lib/node/html/tableBodyRow.js +10 -110
- package/lib/node/html/tableHead.js +10 -110
- package/lib/node/html/tableHeadCell.js +10 -110
- package/lib/node/html/tableHeadRow.js +10 -110
- package/lib/node/html/text/block.js +10 -110
- package/lib/node/html/text/comma.js +21 -128
- package/lib/node/html/text/emphasised.js +14 -118
- package/lib/node/html/text/index.js +28 -143
- package/lib/node/html/text/inline.js +34 -147
- package/lib/node/html/text/plain.js +10 -110
- package/lib/node/html/text/strong.js +14 -118
- package/lib/node/html/text/stronglyEmphasised.js +66 -208
- package/lib/node/html/text.js +24 -162
- package/lib/node/html/topmost.js +100 -240
- package/lib/node/html.js +256 -554
- package/lib/node/markdown/blockEnd.js +5 -89
- package/lib/node/markdown/blockStart.js +18 -113
- package/lib/node/markdown/className.js +12 -100
- package/lib/node/markdown/container.js +18 -113
- package/lib/node/markdown/directive/embed.js +39 -137
- package/lib/node/markdown/directive/include.js +39 -137
- package/lib/node/markdown/division.js +70 -216
- package/lib/node/markdown/document.js +44 -147
- package/lib/node/markdown/error.js +12 -100
- package/lib/node/markdown/footnote.js +12 -100
- package/lib/node/markdown/hyperlink.js +34 -131
- package/lib/node/markdown/image.js +12 -100
- package/lib/node/markdown/item/ordered.js +15 -103
- package/lib/node/markdown/link/email.js +34 -131
- package/lib/node/markdown/link/footnote.js +14 -102
- package/lib/node/markdown/listng/block.js +12 -100
- package/lib/node/markdown/listng/inline.js +18 -106
- package/lib/node/markdown/path.js +12 -100
- package/lib/node/markdown/reference.js +15 -103
- package/lib/node/markdown/subDivision.js +35 -126
- package/lib/node/markdown/text/block.js +5 -89
- package/lib/node/markdown/text/plain.js +5 -89
- package/lib/node/markdown/text.js +46 -134
- package/lib/node/markdown.js +34 -169
- package/lib/node/markdownStyle/amount.js +13 -101
- package/lib/node/markdownStyle/argument.js +5 -89
- package/lib/node/markdownStyle/arguments.js +5 -89
- package/lib/node/markdownStyle/colour.js +12 -100
- package/lib/node/markdownStyle/content.js +21 -109
- package/lib/node/markdownStyle/declaration.js +5 -89
- package/lib/node/markdownStyle/document.js +5 -89
- package/lib/node/markdownStyle/error.js +5 -89
- package/lib/node/markdownStyle/identifier.js +13 -101
- package/lib/node/markdownStyle/name.js +5 -89
- package/lib/node/markdownStyle/nonsense.js +5 -89
- package/lib/node/markdownStyle/pseudoClass.js +5 -89
- package/lib/node/markdownStyle/ruleName.js +12 -100
- package/lib/node/markdownStyle/ruleSet.js +5 -89
- package/lib/node/markdownStyle/selector.js +5 -89
- package/lib/node/markdownStyle/selectors.js +5 -89
- package/lib/node/markdownStyle/selectorsList.js +5 -89
- package/lib/node/markdownStyle/string.js +12 -100
- package/lib/node/markdownStyle/target.js +12 -100
- package/lib/node/markdownStyle/value.js +5 -89
- package/lib/node/markdownStyle/values.js +5 -89
- package/lib/node/markdownStyle/verbatim.js +5 -89
- package/lib/node/markdownStyle.js +16 -135
- package/lib/prepends.js +4 -4
- package/lib/queries/markdown.js +7 -7
- package/lib/queries/markdownStyle.js +7 -7
- package/lib/ruleNames/markdown.js +145 -145
- package/lib/ruleNames/markdownStyle.js +51 -51
- package/lib/style/defaultMarkdown.js +247 -3
- package/lib/style/font.js +54 -3
- package/lib/styleElement/markdown/default.js +17 -131
- package/lib/styleElement/markdown.js +30 -151
- package/lib/styleElement.js +30 -69
- package/lib/targets.js +3 -3
- package/lib/tokenTypes.js +39 -39
- package/lib/transform/css/ruleSet.js +15 -106
- package/lib/transform/css/selectors.js +17 -108
- package/lib/transform/css/selectorsList.js +28 -121
- package/lib/transform/css.js +35 -139
- package/lib/transform/html/anchor/index.js +11 -99
- package/lib/transform/html/division.js +18 -112
- package/lib/transform/html/footnote.js +25 -122
- package/lib/transform/html/heading/index.js +7 -91
- package/lib/transform/html/index.js +44 -139
- package/lib/transform/html/item/contents.js +23 -111
- package/lib/transform/html/item/footnote.js +11 -99
- package/lib/transform/html/item/index.js +11 -99
- package/lib/transform/html/line.js +10 -98
- package/lib/transform/html/link/contents.js +20 -111
- package/lib/transform/html/link/footnote.js +36 -140
- package/lib/transform/html/list/contents.js +37 -151
- package/lib/transform/html/list/footnotes.js +19 -110
- package/lib/transform/html/list/index.js +16 -100
- package/lib/transform/html/pageNumber.js +15 -106
- package/lib/transform/html.js +28 -132
- package/lib/transform/markdown/directive/embed.js +9 -120
- package/lib/transform/markdown/directive/ignore.js +6 -90
- package/lib/transform/markdown/directive/include.js +15 -129
- package/lib/transform/markdown/subDivision.js +6 -90
- package/lib/transform/markdown.js +7 -134
- package/lib/utilities/contents.js +74 -145
- package/lib/utilities/css.js +12 -16
- package/lib/utilities/dom.js +11 -11
- package/lib/utilities/entities.js +2 -2
- package/lib/utilities/entries.js +5 -5
- package/lib/utilities/grammar.js +57 -86
- package/lib/utilities/html.js +21 -25
- package/lib/utilities/index.js +76 -89
- package/lib/utilities/markdown.js +14 -17
- package/lib/utilities/markdownStyle.js +2 -2
- package/lib/utilities/object.js +16 -16
- package/lib/utilities/query.js +13 -14
- package/lib/utilities/string.js +2 -2
- package/package.json +3 -3
package/lib/node/css/argument.js
CHANGED
|
@@ -8,106 +8,19 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return ArgumentCSSNode;
|
|
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 _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 _css = /*#__PURE__*/ _interop_require_default(require("../../node/css"));
|
|
60
12
|
function _interop_require_default(obj) {
|
|
61
13
|
return obj && obj.__esModule ? obj : {
|
|
62
14
|
default: obj
|
|
63
15
|
};
|
|
64
16
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return
|
|
17
|
+
class ArgumentCSSNode extends _css.default {
|
|
18
|
+
static fromNothing() {
|
|
19
|
+
return _css.default.fromNothing(ArgumentCSSNode);
|
|
68
20
|
}
|
|
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;
|
|
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 ArgumentCSSNode = /*#__PURE__*/ function(CSSNode) {
|
|
91
|
-
_inherits(ArgumentCSSNode, CSSNode);
|
|
92
|
-
function ArgumentCSSNode() {
|
|
93
|
-
_class_call_check(this, ArgumentCSSNode);
|
|
94
|
-
return _call_super(this, ArgumentCSSNode, arguments);
|
|
21
|
+
static fromOuterNode(outerNode) {
|
|
22
|
+
return _css.default.fromOuterNode(ArgumentCSSNode, outerNode);
|
|
95
23
|
}
|
|
96
|
-
|
|
97
|
-
{
|
|
98
|
-
key: "fromNothing",
|
|
99
|
-
value: function fromNothing() {
|
|
100
|
-
return _css.default.fromNothing(ArgumentCSSNode);
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
key: "fromOuterNode",
|
|
105
|
-
value: function fromOuterNode(outerNode) {
|
|
106
|
-
return _css.default.fromOuterNode(ArgumentCSSNode, outerNode);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
]);
|
|
110
|
-
return ArgumentCSSNode;
|
|
111
|
-
}(_css.default);
|
|
24
|
+
}
|
|
112
25
|
|
|
113
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ub2RlL2Nzcy9hcmd1bWVudC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IENTU05vZGUgZnJvbSBcIi4uLy4uL25vZGUvY3NzXCI7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIEFyZ3VtZW50Q1NTTm9kZSBleHRlbmRzIENTU05vZGUge1xuICBzdGF0aWMgZnJvbU5vdGhpbmcoKSB7IHJldHVybiBDU1NOb2RlLmZyb21Ob3RoaW5nKEFyZ3VtZW50Q1NTTm9kZSk7IH1cblxuICBzdGF0aWMgZnJvbU91dGVyTm9kZShvdXRlck5vZGUpIHsgcmV0dXJuIENTU05vZGUuZnJvbU91dGVyTm9kZShBcmd1bWVudENTU05vZGUsIG91dGVyTm9kZSk7IH1cbn1cbiJdLCJuYW1lcyI6WyJBcmd1bWVudENTU05vZGUiLCJDU1NOb2RlIiwiZnJvbU5vdGhpbmciLCJmcm9tT3V0ZXJOb2RlIiwib3V0ZXJOb2RlIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFJQTs7O2VBQXFCQTs7OzREQUZEOzs7Ozs7QUFFTCxNQUFNQSx3QkFBd0JDLFlBQU87SUFDbEQsT0FBT0MsY0FBYztRQUFFLE9BQU9ELFlBQU8sQ0FBQ0MsV0FBVyxDQUFDRjtJQUFrQjtJQUVwRSxPQUFPRyxjQUFjQyxTQUFTLEVBQUU7UUFBRSxPQUFPSCxZQUFPLENBQUNFLGFBQWEsQ0FBQ0gsaUJBQWlCSTtJQUFZO0FBQzlGIn0=
|
|
@@ -8,139 +8,25 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return ArgumentCSSNode;
|
|
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 _get(target, property, receiver) {
|
|
42
|
-
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
43
|
-
_get = Reflect.get;
|
|
44
|
-
} else {
|
|
45
|
-
_get = function get(target, property, receiver) {
|
|
46
|
-
var base = _super_prop_base(target, property);
|
|
47
|
-
if (!base) return;
|
|
48
|
-
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
49
|
-
if (desc.get) {
|
|
50
|
-
return desc.get.call(receiver || target);
|
|
51
|
-
}
|
|
52
|
-
return desc.value;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
return _get(target, property, receiver || target);
|
|
56
|
-
}
|
|
57
|
-
function _get_prototype_of(o) {
|
|
58
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
59
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
60
|
-
};
|
|
61
|
-
return _get_prototype_of(o);
|
|
62
|
-
}
|
|
63
|
-
function _inherits(subClass, superClass) {
|
|
64
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
65
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
66
|
-
}
|
|
67
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
68
|
-
constructor: {
|
|
69
|
-
value: subClass,
|
|
70
|
-
writable: true,
|
|
71
|
-
configurable: true
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
75
|
-
}
|
|
11
|
+
const _css = /*#__PURE__*/ _interop_require_default(require("../../node/css"));
|
|
76
12
|
function _interop_require_default(obj) {
|
|
77
13
|
return obj && obj.__esModule ? obj : {
|
|
78
14
|
default: obj
|
|
79
15
|
};
|
|
80
16
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
17
|
+
class ArgumentCSSNode extends _css.default {
|
|
18
|
+
asCSS(context) {
|
|
19
|
+
let css;
|
|
20
|
+
css = super.asCSS(context);
|
|
21
|
+
css = `(${css})`;
|
|
22
|
+
return css;
|
|
84
23
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
function _set_prototype_of(o, p) {
|
|
88
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
89
|
-
o.__proto__ = p;
|
|
90
|
-
return o;
|
|
91
|
-
};
|
|
92
|
-
return _set_prototype_of(o, p);
|
|
93
|
-
}
|
|
94
|
-
function _super_prop_base(object, property) {
|
|
95
|
-
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
96
|
-
object = _get_prototype_of(object);
|
|
97
|
-
if (object === null) break;
|
|
24
|
+
static fromNothing() {
|
|
25
|
+
return _css.default.fromNothing(ArgumentsCSSNode);
|
|
98
26
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
function _type_of(obj) {
|
|
102
|
-
"@swc/helpers - typeof";
|
|
103
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
104
|
-
}
|
|
105
|
-
function _is_native_reflect_construct() {
|
|
106
|
-
try {
|
|
107
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
108
|
-
} catch (_) {}
|
|
109
|
-
return (_is_native_reflect_construct = function() {
|
|
110
|
-
return !!result;
|
|
111
|
-
})();
|
|
112
|
-
}
|
|
113
|
-
var ArgumentCSSNode = /*#__PURE__*/ function(CSSNode) {
|
|
114
|
-
_inherits(ArgumentCSSNode, CSSNode);
|
|
115
|
-
function ArgumentCSSNode() {
|
|
116
|
-
_class_call_check(this, ArgumentCSSNode);
|
|
117
|
-
return _call_super(this, ArgumentCSSNode, arguments);
|
|
27
|
+
static fromOuterNode(outerNode) {
|
|
28
|
+
return _css.default.fromOuterNode(ArgumentCSSNode, outerNode);
|
|
118
29
|
}
|
|
119
|
-
|
|
120
|
-
{
|
|
121
|
-
key: "asCSS",
|
|
122
|
-
value: function asCSS(context) {
|
|
123
|
-
var css;
|
|
124
|
-
css = _get(_get_prototype_of(ArgumentCSSNode.prototype), "asCSS", this).call(this, context);
|
|
125
|
-
css = "(".concat(css, ")");
|
|
126
|
-
return css;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
], [
|
|
130
|
-
{
|
|
131
|
-
key: "fromNothing",
|
|
132
|
-
value: function fromNothing() {
|
|
133
|
-
return _css.default.fromNothing(ArgumentsCSSNode);
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
key: "fromOuterNode",
|
|
138
|
-
value: function fromOuterNode(outerNode) {
|
|
139
|
-
return _css.default.fromOuterNode(ArgumentCSSNode, outerNode);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
]);
|
|
143
|
-
return ArgumentCSSNode;
|
|
144
|
-
}(_css.default);
|
|
30
|
+
}
|
|
145
31
|
|
|
146
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ub2RlL2Nzcy9hcmd1bWVudHMuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBDU1NOb2RlIGZyb20gXCIuLi8uLi9ub2RlL2Nzc1wiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBBcmd1bWVudENTU05vZGUgZXh0ZW5kcyBDU1NOb2RlIHtcbiAgYXNDU1MoY29udGV4dCkge1xuICAgIGxldCBjc3M7XG5cbiAgICBjc3MgPSBzdXBlci5hc0NTUyhjb250ZXh0KTtcblxuICAgIGNzcyA9IGAoJHtjc3N9KWA7XG5cbiAgICByZXR1cm4gY3NzO1xuICB9XG5cbiAgc3RhdGljIGZyb21Ob3RoaW5nKCkgeyByZXR1cm4gQ1NTTm9kZS5mcm9tTm90aGluZyhBcmd1bWVudHNDU1NOb2RlKTsgfVxuXG4gIHN0YXRpYyBmcm9tT3V0ZXJOb2RlKG91dGVyTm9kZSkgeyByZXR1cm4gQ1NTTm9kZS5mcm9tT3V0ZXJOb2RlKEFyZ3VtZW50Q1NTTm9kZSwgb3V0ZXJOb2RlKTsgfVxufVxuIl0sIm5hbWVzIjpbIkFyZ3VtZW50Q1NTTm9kZSIsIkNTU05vZGUiLCJhc0NTUyIsImNvbnRleHQiLCJjc3MiLCJmcm9tTm90aGluZyIsIkFyZ3VtZW50c0NTU05vZGUiLCJmcm9tT3V0ZXJOb2RlIiwib3V0ZXJOb2RlIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFJQTs7O2VBQXFCQTs7OzREQUZEOzs7Ozs7QUFFTCxNQUFNQSx3QkFBd0JDLFlBQU87SUFDbERDLE1BQU1DLE9BQU8sRUFBRTtRQUNiLElBQUlDO1FBRUpBLE1BQU0sS0FBSyxDQUFDRixNQUFNQztRQUVsQkMsTUFBTSxDQUFDLENBQUMsRUFBRUEsSUFBSSxDQUFDLENBQUM7UUFFaEIsT0FBT0E7SUFDVDtJQUVBLE9BQU9DLGNBQWM7UUFBRSxPQUFPSixZQUFPLENBQUNJLFdBQVcsQ0FBQ0M7SUFBbUI7SUFFckUsT0FBT0MsY0FBY0MsU0FBUyxFQUFFO1FBQUUsT0FBT1AsWUFBTyxDQUFDTSxhQUFhLENBQUNQLGlCQUFpQlE7SUFBWTtBQUM5RiJ9
|
package/lib/node/css/class.js
CHANGED
|
@@ -8,139 +8,25 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return ClassCSSNode;
|
|
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 _get(target, property, receiver) {
|
|
42
|
-
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
43
|
-
_get = Reflect.get;
|
|
44
|
-
} else {
|
|
45
|
-
_get = function get(target, property, receiver) {
|
|
46
|
-
var base = _super_prop_base(target, property);
|
|
47
|
-
if (!base) return;
|
|
48
|
-
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
49
|
-
if (desc.get) {
|
|
50
|
-
return desc.get.call(receiver || target);
|
|
51
|
-
}
|
|
52
|
-
return desc.value;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
return _get(target, property, receiver || target);
|
|
56
|
-
}
|
|
57
|
-
function _get_prototype_of(o) {
|
|
58
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
59
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
60
|
-
};
|
|
61
|
-
return _get_prototype_of(o);
|
|
62
|
-
}
|
|
63
|
-
function _inherits(subClass, superClass) {
|
|
64
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
65
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
66
|
-
}
|
|
67
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
68
|
-
constructor: {
|
|
69
|
-
value: subClass,
|
|
70
|
-
writable: true,
|
|
71
|
-
configurable: true
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
75
|
-
}
|
|
11
|
+
const _css = /*#__PURE__*/ _interop_require_default(require("../../node/css"));
|
|
76
12
|
function _interop_require_default(obj) {
|
|
77
13
|
return obj && obj.__esModule ? obj : {
|
|
78
14
|
default: obj
|
|
79
15
|
};
|
|
80
16
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
17
|
+
class ClassCSSNode extends _css.default {
|
|
18
|
+
asCSS(context) {
|
|
19
|
+
let css;
|
|
20
|
+
css = super.asCSS(context);
|
|
21
|
+
css = `.${css}`;
|
|
22
|
+
return css;
|
|
84
23
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
function _set_prototype_of(o, p) {
|
|
88
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
89
|
-
o.__proto__ = p;
|
|
90
|
-
return o;
|
|
91
|
-
};
|
|
92
|
-
return _set_prototype_of(o, p);
|
|
93
|
-
}
|
|
94
|
-
function _super_prop_base(object, property) {
|
|
95
|
-
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
96
|
-
object = _get_prototype_of(object);
|
|
97
|
-
if (object === null) break;
|
|
24
|
+
static fromNothing() {
|
|
25
|
+
return _css.default.fromNothing(ClassCSSNode);
|
|
98
26
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
function _type_of(obj) {
|
|
102
|
-
"@swc/helpers - typeof";
|
|
103
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
104
|
-
}
|
|
105
|
-
function _is_native_reflect_construct() {
|
|
106
|
-
try {
|
|
107
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
108
|
-
} catch (_) {}
|
|
109
|
-
return (_is_native_reflect_construct = function() {
|
|
110
|
-
return !!result;
|
|
111
|
-
})();
|
|
112
|
-
}
|
|
113
|
-
var ClassCSSNode = /*#__PURE__*/ function(CSSNode) {
|
|
114
|
-
_inherits(ClassCSSNode, CSSNode);
|
|
115
|
-
function ClassCSSNode() {
|
|
116
|
-
_class_call_check(this, ClassCSSNode);
|
|
117
|
-
return _call_super(this, ClassCSSNode, arguments);
|
|
27
|
+
static fromOuterNode(outerNode) {
|
|
28
|
+
return _css.default.fromOuterNode(ClassCSSNode, outerNode);
|
|
118
29
|
}
|
|
119
|
-
|
|
120
|
-
{
|
|
121
|
-
key: "asCSS",
|
|
122
|
-
value: function asCSS(context) {
|
|
123
|
-
var css;
|
|
124
|
-
css = _get(_get_prototype_of(ClassCSSNode.prototype), "asCSS", this).call(this, context);
|
|
125
|
-
css = ".".concat(css);
|
|
126
|
-
return css;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
], [
|
|
130
|
-
{
|
|
131
|
-
key: "fromNothing",
|
|
132
|
-
value: function fromNothing() {
|
|
133
|
-
return _css.default.fromNothing(ClassCSSNode);
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
key: "fromOuterNode",
|
|
138
|
-
value: function fromOuterNode(outerNode) {
|
|
139
|
-
return _css.default.fromOuterNode(ClassCSSNode, outerNode);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
]);
|
|
143
|
-
return ClassCSSNode;
|
|
144
|
-
}(_css.default);
|
|
30
|
+
}
|
|
145
31
|
|
|
146
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ub2RlL2Nzcy9jbGFzcy5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IENTU05vZGUgZnJvbSBcIi4uLy4uL25vZGUvY3NzXCI7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIENsYXNzQ1NTTm9kZSBleHRlbmRzIENTU05vZGUge1xuICBhc0NTUyhjb250ZXh0KSB7XG4gICAgbGV0IGNzcztcblxuICAgIGNzcyA9IHN1cGVyLmFzQ1NTKGNvbnRleHQpO1xuXG4gICAgY3NzID0gYC4ke2Nzc31gO1xuXG4gICAgcmV0dXJuIGNzcztcbiAgfVxuXG4gIHN0YXRpYyBmcm9tTm90aGluZygpIHsgcmV0dXJuIENTU05vZGUuZnJvbU5vdGhpbmcoQ2xhc3NDU1NOb2RlKTsgfVxuXG4gIHN0YXRpYyBmcm9tT3V0ZXJOb2RlKG91dGVyTm9kZSkgeyByZXR1cm4gQ1NTTm9kZS5mcm9tT3V0ZXJOb2RlKENsYXNzQ1NTTm9kZSwgb3V0ZXJOb2RlKTsgfVxufVxuIl0sIm5hbWVzIjpbIkNsYXNzQ1NTTm9kZSIsIkNTU05vZGUiLCJhc0NTUyIsImNvbnRleHQiLCJjc3MiLCJmcm9tTm90aGluZyIsImZyb21PdXRlck5vZGUiLCJvdXRlck5vZGUiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQUlBOzs7ZUFBcUJBOzs7NERBRkQ7Ozs7OztBQUVMLE1BQU1BLHFCQUFxQkMsWUFBTztJQUMvQ0MsTUFBTUMsT0FBTyxFQUFFO1FBQ2IsSUFBSUM7UUFFSkEsTUFBTSxLQUFLLENBQUNGLE1BQU1DO1FBRWxCQyxNQUFNLENBQUMsQ0FBQyxFQUFFQSxLQUFLO1FBRWYsT0FBT0E7SUFDVDtJQUVBLE9BQU9DLGNBQWM7UUFBRSxPQUFPSixZQUFPLENBQUNJLFdBQVcsQ0FBQ0w7SUFBZTtJQUVqRSxPQUFPTSxjQUFjQyxTQUFTLEVBQUU7UUFBRSxPQUFPTixZQUFPLENBQUNLLGFBQWEsQ0FBQ04sY0FBY087SUFBWTtBQUMzRiJ9
|
package/lib/node/css/colour.js
CHANGED
|
@@ -8,121 +8,27 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return ColourCSSNode;
|
|
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 _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 _css = /*#__PURE__*/ _interop_require_default(require("../../node/css"));
|
|
60
12
|
function _interop_require_default(obj) {
|
|
61
13
|
return obj && obj.__esModule ? obj : {
|
|
62
14
|
default: obj
|
|
63
15
|
};
|
|
64
16
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
17
|
+
class ColourCSSNode extends _css.default {
|
|
18
|
+
content() {
|
|
19
|
+
const markdownStyleNode = this.getMarkdownStyleNode(), content = markdownStyleNode.content();
|
|
20
|
+
return content;
|
|
68
21
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return
|
|
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 ColourCSSNode = /*#__PURE__*/ function(CSSNode) {
|
|
91
|
-
_inherits(ColourCSSNode, CSSNode);
|
|
92
|
-
function ColourCSSNode() {
|
|
93
|
-
_class_call_check(this, ColourCSSNode);
|
|
94
|
-
return _call_super(this, ColourCSSNode, arguments);
|
|
22
|
+
asCSS(context) {
|
|
23
|
+
const content = this.content(), css = content; ///
|
|
24
|
+
return css;
|
|
25
|
+
}
|
|
26
|
+
static fromNothing() {
|
|
27
|
+
return _css.default.fromNothing(ColourCSSNode);
|
|
95
28
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
var markdownStyleNode = this.getMarkdownStyleNode(), content = markdownStyleNode.content();
|
|
101
|
-
return content;
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
key: "asCSS",
|
|
106
|
-
value: function asCSS(context) {
|
|
107
|
-
var content = this.content(), css = content; ///
|
|
108
|
-
return css;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
], [
|
|
112
|
-
{
|
|
113
|
-
key: "fromNothing",
|
|
114
|
-
value: function fromNothing() {
|
|
115
|
-
return _css.default.fromNothing(ColourCSSNode);
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
key: "fromOuterNode",
|
|
120
|
-
value: function fromOuterNode(outerNode) {
|
|
121
|
-
return _css.default.fromOuterNode(ColourCSSNode, outerNode);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
]);
|
|
125
|
-
return ColourCSSNode;
|
|
126
|
-
}(_css.default);
|
|
29
|
+
static fromOuterNode(outerNode) {
|
|
30
|
+
return _css.default.fromOuterNode(ColourCSSNode, outerNode);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
127
33
|
|
|
128
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ub2RlL2Nzcy9jb2xvdXIuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBDU1NOb2RlIGZyb20gXCIuLi8uLi9ub2RlL2Nzc1wiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBDb2xvdXJDU1NOb2RlIGV4dGVuZHMgQ1NTTm9kZSB7XG4gIGNvbnRlbnQoKSB7XG4gICAgY29uc3QgbWFya2Rvd25TdHlsZU5vZGUgPSB0aGlzLmdldE1hcmtkb3duU3R5bGVOb2RlKCksXG4gICAgICAgICAgY29udGVudCA9IG1hcmtkb3duU3R5bGVOb2RlLmNvbnRlbnQoKTtcblxuICAgIHJldHVybiBjb250ZW50O1xuICB9XG5cbiAgYXNDU1MoY29udGV4dCkge1xuICAgIGNvbnN0IGNvbnRlbnQgPSB0aGlzLmNvbnRlbnQoKSxcbiAgICAgICAgICBjc3MgPSBjb250ZW50OyAvLy9cblxuICAgIHJldHVybiBjc3M7XG4gIH1cblxuICBzdGF0aWMgZnJvbU5vdGhpbmcoKSB7IHJldHVybiBDU1NOb2RlLmZyb21Ob3RoaW5nKENvbG91ckNTU05vZGUpOyB9XG5cbiAgc3RhdGljIGZyb21PdXRlck5vZGUob3V0ZXJOb2RlKSB7IHJldHVybiBDU1NOb2RlLmZyb21PdXRlck5vZGUoQ29sb3VyQ1NTTm9kZSwgb3V0ZXJOb2RlKTsgfVxufSJdLCJuYW1lcyI6WyJDb2xvdXJDU1NOb2RlIiwiQ1NTTm9kZSIsImNvbnRlbnQiLCJtYXJrZG93blN0eWxlTm9kZSIsImdldE1hcmtkb3duU3R5bGVOb2RlIiwiYXNDU1MiLCJjb250ZXh0IiwiY3NzIiwiZnJvbU5vdGhpbmciLCJmcm9tT3V0ZXJOb2RlIiwib3V0ZXJOb2RlIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFJQTs7O2VBQXFCQTs7OzREQUZEOzs7Ozs7QUFFTCxNQUFNQSxzQkFBc0JDLFlBQU87SUFDaERDLFVBQVU7UUFDUixNQUFNQyxvQkFBb0IsSUFBSSxDQUFDQyxvQkFBb0IsSUFDN0NGLFVBQVVDLGtCQUFrQkQsT0FBTztRQUV6QyxPQUFPQTtJQUNUO0lBRUFHLE1BQU1DLE9BQU8sRUFBRTtRQUNiLE1BQU1KLFVBQVUsSUFBSSxDQUFDQSxPQUFPLElBQ3RCSyxNQUFNTCxTQUFTLEdBQUc7UUFFeEIsT0FBT0s7SUFDVDtJQUVBLE9BQU9DLGNBQWM7UUFBRSxPQUFPUCxZQUFPLENBQUNPLFdBQVcsQ0FBQ1I7SUFBZ0I7SUFFbEUsT0FBT1MsY0FBY0MsU0FBUyxFQUFFO1FBQUUsT0FBT1QsWUFBTyxDQUFDUSxhQUFhLENBQUNULGVBQWVVO0lBQVk7QUFDNUYifQ==
|