highmark-markdown 1.2.71 → 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 +1 -1
|
@@ -8,168 +8,32 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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 _construct(Parent, args, Class) {
|
|
30
|
-
if (_is_native_reflect_construct()) {
|
|
31
|
-
_construct = Reflect.construct;
|
|
32
|
-
} else {
|
|
33
|
-
_construct = function construct(Parent, args, Class) {
|
|
34
|
-
var a = [
|
|
35
|
-
null
|
|
36
|
-
];
|
|
37
|
-
a.push.apply(a, args);
|
|
38
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
39
|
-
var instance = new Constructor();
|
|
40
|
-
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
41
|
-
return instance;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
return _construct.apply(null, arguments);
|
|
45
|
-
}
|
|
46
|
-
function _define_property(obj, key, value) {
|
|
47
|
-
if (key in obj) {
|
|
48
|
-
Object.defineProperty(obj, key, {
|
|
49
|
-
value: value,
|
|
50
|
-
enumerable: true,
|
|
51
|
-
configurable: true,
|
|
52
|
-
writable: true
|
|
53
|
-
});
|
|
54
|
-
} else {
|
|
55
|
-
obj[key] = value;
|
|
56
|
-
}
|
|
57
|
-
return obj;
|
|
58
|
-
}
|
|
59
|
-
function _get_prototype_of(o) {
|
|
60
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
61
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
62
|
-
};
|
|
63
|
-
return _get_prototype_of(o);
|
|
64
|
-
}
|
|
65
|
-
function _inherits(subClass, superClass) {
|
|
66
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
67
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
68
|
-
}
|
|
69
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
70
|
-
constructor: {
|
|
71
|
-
value: subClass,
|
|
72
|
-
writable: true,
|
|
73
|
-
configurable: true
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
77
|
-
}
|
|
11
|
+
const _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
const _easy = require("easy");
|
|
13
|
+
const _customEventTypes = require("../../customEventTypes");
|
|
78
14
|
function _interop_require_default(obj) {
|
|
79
15
|
return obj && obj.__esModule ? obj : {
|
|
80
16
|
default: obj
|
|
81
17
|
};
|
|
82
18
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
88
|
-
return call;
|
|
89
|
-
}
|
|
90
|
-
return _assert_this_initialized(self);
|
|
91
|
-
}
|
|
92
|
-
function _set_prototype_of(o, p) {
|
|
93
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
94
|
-
o.__proto__ = p;
|
|
95
|
-
return o;
|
|
19
|
+
class ContainerDiv extends _easy.Element {
|
|
20
|
+
keyUpHandler = (event, element)=>{
|
|
21
|
+
const customEventType = _customEventTypes.KEY_UP_CUSTOM_EVENT_TYPE;
|
|
22
|
+
this.callCustomHandlers(customEventType, event, element);
|
|
96
23
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
if (!raw) {
|
|
101
|
-
raw = strings.slice(0);
|
|
102
|
-
}
|
|
103
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
104
|
-
raw: {
|
|
105
|
-
value: Object.freeze(raw)
|
|
106
|
-
}
|
|
107
|
-
}));
|
|
108
|
-
}
|
|
109
|
-
function _type_of(obj) {
|
|
110
|
-
"@swc/helpers - typeof";
|
|
111
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
112
|
-
}
|
|
113
|
-
function _wrap_native_super(Class) {
|
|
114
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
115
|
-
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
116
|
-
if (Class === null || !_is_native_function(Class)) return Class;
|
|
117
|
-
if (typeof Class !== "function") {
|
|
118
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
119
|
-
}
|
|
120
|
-
if (typeof _cache !== "undefined") {
|
|
121
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
122
|
-
_cache.set(Class, Wrapper);
|
|
123
|
-
}
|
|
124
|
-
function Wrapper() {
|
|
125
|
-
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
126
|
-
}
|
|
127
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
128
|
-
constructor: {
|
|
129
|
-
value: Wrapper,
|
|
130
|
-
enumerable: false,
|
|
131
|
-
writable: true,
|
|
132
|
-
configurable: true
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
return _set_prototype_of(Wrapper, Class);
|
|
24
|
+
static tagName = "div";
|
|
25
|
+
static defaultProperties = {
|
|
26
|
+
className: "container"
|
|
136
27
|
};
|
|
137
|
-
return _wrap_native_super(Class);
|
|
138
28
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
var data = _tagged_template_literal([
|
|
149
|
-
"\n\n border: 1px solid black;\n height: 48rem;\n padding: 1rem;\n overflow: hidden;\n border-top: 0;\n \n"
|
|
150
|
-
]);
|
|
151
|
-
_templateObject = function _templateObject() {
|
|
152
|
-
return data;
|
|
153
|
-
};
|
|
154
|
-
return data;
|
|
155
|
-
}
|
|
156
|
-
var ContainerDiv = /*#__PURE__*/ function(Element) {
|
|
157
|
-
_inherits(ContainerDiv, Element);
|
|
158
|
-
function ContainerDiv() {
|
|
159
|
-
_class_call_check(this, ContainerDiv);
|
|
160
|
-
var _this;
|
|
161
|
-
_this = _call_super(this, ContainerDiv, arguments), _define_property(_this, "keyUpHandler", function(event, element) {
|
|
162
|
-
var customEventType = _customEventTypes.KEY_UP_CUSTOM_EVENT_TYPE;
|
|
163
|
-
_this.callCustomHandlers(customEventType, event, element);
|
|
164
|
-
});
|
|
165
|
-
return _this;
|
|
166
|
-
}
|
|
167
|
-
return ContainerDiv;
|
|
168
|
-
}(_wrap_native_super(_easy.Element));
|
|
169
|
-
_define_property(ContainerDiv, "tagName", "div");
|
|
170
|
-
_define_property(ContainerDiv, "defaultProperties", {
|
|
171
|
-
className: "container"
|
|
172
|
-
});
|
|
173
|
-
var _default = (0, _easywithstyle.default)(ContainerDiv)(_templateObject());
|
|
29
|
+
const _default = (0, _easywithstyle.default)(ContainerDiv)`
|
|
30
|
+
|
|
31
|
+
border: 1px solid black;
|
|
32
|
+
height: 48rem;
|
|
33
|
+
padding: 1rem;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
border-top: 0;
|
|
36
|
+
|
|
37
|
+
`;
|
|
174
38
|
|
|
175
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvZGl2L2NvbnRhaW5lci5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHdpdGhTdHlsZSBmcm9tIFwiZWFzeS13aXRoLXN0eWxlXCI7ICAvLy9cblxuaW1wb3J0IHsgRWxlbWVudCB9IGZyb20gXCJlYXN5XCI7XG5cbmltcG9ydCB7IEtFWV9VUF9DVVNUT01fRVZFTlRfVFlQRSB9IGZyb20gXCIuLi8uLi9jdXN0b21FdmVudFR5cGVzXCI7XG5cbmNsYXNzIENvbnRhaW5lckRpdiBleHRlbmRzIEVsZW1lbnQge1xuICBrZXlVcEhhbmRsZXIgPSAoZXZlbnQsIGVsZW1lbnQpID0+
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvZGl2L2NvbnRhaW5lci5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHdpdGhTdHlsZSBmcm9tIFwiZWFzeS13aXRoLXN0eWxlXCI7ICAvLy9cblxuaW1wb3J0IHsgRWxlbWVudCB9IGZyb20gXCJlYXN5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FCQyxhQUFPO0lBQ2hDQyxlQUFlLENBQUNDLE9BQU9DO1FBQ3JCLE1BQU1DLGtCQUFrQkMsMENBQXdCO1FBRWhELElBQUksQ0FBQ0Msa0JBQWtCLENBQUNGLGlCQUFpQkYsT0FBT0M7SUFDbEQsRUFBQztJQUVELE9BQU9JLFVBQVUsTUFBTTtJQUV2QixPQUFPQyxvQkFBb0I7UUFDekJDLFdBQVc7SUFDYixFQUFFO0FBQ0o7TUFFQSxXQUFlQyxJQUFBQSxzQkFBUyxFQUFDWCxhQUFhLENBQUM7Ozs7Ozs7O0FBUXZDLENBQUMifQ==
|
|
@@ -8,185 +8,30 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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 _construct(Parent, args, Class) {
|
|
30
|
-
if (_is_native_reflect_construct()) {
|
|
31
|
-
_construct = Reflect.construct;
|
|
32
|
-
} else {
|
|
33
|
-
_construct = function construct(Parent, args, Class) {
|
|
34
|
-
var a = [
|
|
35
|
-
null
|
|
36
|
-
];
|
|
37
|
-
a.push.apply(a, args);
|
|
38
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
39
|
-
var instance = new Constructor();
|
|
40
|
-
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
41
|
-
return instance;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
return _construct.apply(null, arguments);
|
|
45
|
-
}
|
|
46
|
-
function _defineProperties(target, props) {
|
|
47
|
-
for(var i = 0; i < props.length; i++){
|
|
48
|
-
var descriptor = props[i];
|
|
49
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
50
|
-
descriptor.configurable = true;
|
|
51
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
52
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
56
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
57
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
58
|
-
return Constructor;
|
|
59
|
-
}
|
|
60
|
-
function _define_property(obj, key, value) {
|
|
61
|
-
if (key in obj) {
|
|
62
|
-
Object.defineProperty(obj, key, {
|
|
63
|
-
value: value,
|
|
64
|
-
enumerable: true,
|
|
65
|
-
configurable: true,
|
|
66
|
-
writable: true
|
|
67
|
-
});
|
|
68
|
-
} else {
|
|
69
|
-
obj[key] = value;
|
|
70
|
-
}
|
|
71
|
-
return obj;
|
|
72
|
-
}
|
|
73
|
-
function _get_prototype_of(o) {
|
|
74
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
75
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
76
|
-
};
|
|
77
|
-
return _get_prototype_of(o);
|
|
78
|
-
}
|
|
79
|
-
function _inherits(subClass, superClass) {
|
|
80
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
81
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
82
|
-
}
|
|
83
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
84
|
-
constructor: {
|
|
85
|
-
value: subClass,
|
|
86
|
-
writable: true,
|
|
87
|
-
configurable: true
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
91
|
-
}
|
|
11
|
+
const _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
const _easy = require("easy");
|
|
13
|
+
const _xmp = /*#__PURE__*/ _interop_require_default(require("../xmp"));
|
|
92
14
|
function _interop_require_default(obj) {
|
|
93
15
|
return obj && obj.__esModule ? obj : {
|
|
94
16
|
default: obj
|
|
95
17
|
};
|
|
96
18
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
function _possible_constructor_return(self, call) {
|
|
101
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
102
|
-
return call;
|
|
19
|
+
class HTMLDiv extends _easy.Element {
|
|
20
|
+
childElements() {
|
|
21
|
+
return /*#__PURE__*/ React.createElement(_xmp.default, null);
|
|
103
22
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
108
|
-
o.__proto__ = p;
|
|
109
|
-
return o;
|
|
110
|
-
};
|
|
111
|
-
return _set_prototype_of(o, p);
|
|
112
|
-
}
|
|
113
|
-
function _tagged_template_literal(strings, raw) {
|
|
114
|
-
if (!raw) {
|
|
115
|
-
raw = strings.slice(0);
|
|
116
|
-
}
|
|
117
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
118
|
-
raw: {
|
|
119
|
-
value: Object.freeze(raw)
|
|
120
|
-
}
|
|
121
|
-
}));
|
|
122
|
-
}
|
|
123
|
-
function _type_of(obj) {
|
|
124
|
-
"@swc/helpers - typeof";
|
|
125
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
126
|
-
}
|
|
127
|
-
function _wrap_native_super(Class) {
|
|
128
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
129
|
-
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
130
|
-
if (Class === null || !_is_native_function(Class)) return Class;
|
|
131
|
-
if (typeof Class !== "function") {
|
|
132
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
133
|
-
}
|
|
134
|
-
if (typeof _cache !== "undefined") {
|
|
135
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
136
|
-
_cache.set(Class, Wrapper);
|
|
137
|
-
}
|
|
138
|
-
function Wrapper() {
|
|
139
|
-
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
140
|
-
}
|
|
141
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
142
|
-
constructor: {
|
|
143
|
-
value: Wrapper,
|
|
144
|
-
enumerable: false,
|
|
145
|
-
writable: true,
|
|
146
|
-
configurable: true
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
return _set_prototype_of(Wrapper, Class);
|
|
150
|
-
};
|
|
151
|
-
return _wrap_native_super(Class);
|
|
152
|
-
}
|
|
153
|
-
function _is_native_reflect_construct() {
|
|
154
|
-
try {
|
|
155
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
156
|
-
} catch (_) {}
|
|
157
|
-
return (_is_native_reflect_construct = function() {
|
|
158
|
-
return !!result;
|
|
159
|
-
})();
|
|
160
|
-
}
|
|
161
|
-
function _templateObject() {
|
|
162
|
-
var data = _tagged_template_literal([
|
|
163
|
-
"\n\n height: 100%;\n border: 1px solid darkgrey;\n overflow: scroll;\n position: relative;\n \n"
|
|
164
|
-
]);
|
|
165
|
-
_templateObject = function _templateObject() {
|
|
166
|
-
return data;
|
|
23
|
+
static tagName = "div";
|
|
24
|
+
static defaultProperties = {
|
|
25
|
+
className: "html"
|
|
167
26
|
};
|
|
168
|
-
return data;
|
|
169
27
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
key: "childElements",
|
|
179
|
-
value: function childElements() {
|
|
180
|
-
return /*#__PURE__*/ React.createElement(_xmp.default, null);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
]);
|
|
184
|
-
return HTMLDiv;
|
|
185
|
-
}(_wrap_native_super(_easy.Element));
|
|
186
|
-
_define_property(HTMLDiv, "tagName", "div");
|
|
187
|
-
_define_property(HTMLDiv, "defaultProperties", {
|
|
188
|
-
className: "html"
|
|
189
|
-
});
|
|
190
|
-
var _default = (0, _easywithstyle.default)(HTMLDiv)(_templateObject());
|
|
28
|
+
const _default = (0, _easywithstyle.default)(HTMLDiv)`
|
|
29
|
+
|
|
30
|
+
height: 100%;
|
|
31
|
+
border: 1px solid darkgrey;
|
|
32
|
+
overflow: scroll;
|
|
33
|
+
position: relative;
|
|
34
|
+
|
|
35
|
+
`;
|
|
191
36
|
|
|
192
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvZGl2L2h0bWwuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCB3aXRoU3R5bGUgZnJvbSBcImVhc3ktd2l0aC1zdHlsZVwiOyAgLy8vXG5cbmltcG9ydCB7IEVsZW1lbnQgfSBmcm9tIFwiZWFzeVwiO1xuXG5pbXBvcnQgWE1QIGZyb20gXCIuLi94bXBcIjtcblxuY2xhc3MgSFRNTERpdiBleHRlbmRzIEVsZW1lbnQge1xuICBjaGlsZEVsZW1lbnRzKCkge1xuICAgIHJldHVybiAoXG5cbiAgICAgIDxYTVAvPlxuXG4gICAgKTtcbiAgfVxuXG4gIHN0YXRpYyB0YWdOYW1lID0gXCJkaXZcIjtcblxuICBzdGF0aWMgZGVmYXVsdFByb3BlcnRpZX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