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,202 +8,50 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function _assert_this_initialized(self) {
|
|
17
|
-
if (self === void 0) {
|
|
18
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
19
|
-
}
|
|
20
|
-
return self;
|
|
21
|
-
}
|
|
22
|
-
function _call_super(_this, derived, args) {
|
|
23
|
-
derived = _get_prototype_of(derived);
|
|
24
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
25
|
-
}
|
|
26
|
-
function _class_call_check(instance, Constructor) {
|
|
27
|
-
if (!(instance instanceof Constructor)) {
|
|
28
|
-
throw new TypeError("Cannot call a class as a function");
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function _defineProperties(target, props) {
|
|
32
|
-
for(var i = 0; i < props.length; i++){
|
|
33
|
-
var descriptor = props[i];
|
|
34
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
35
|
-
descriptor.configurable = true;
|
|
36
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
37
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
41
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
42
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
43
|
-
return Constructor;
|
|
44
|
-
}
|
|
45
|
-
function _define_property(obj, key, value) {
|
|
46
|
-
if (key in obj) {
|
|
47
|
-
Object.defineProperty(obj, key, {
|
|
48
|
-
value: value,
|
|
49
|
-
enumerable: true,
|
|
50
|
-
configurable: true,
|
|
51
|
-
writable: true
|
|
52
|
-
});
|
|
53
|
-
} else {
|
|
54
|
-
obj[key] = value;
|
|
55
|
-
}
|
|
56
|
-
return obj;
|
|
57
|
-
}
|
|
58
|
-
function _get_prototype_of(o) {
|
|
59
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
60
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
61
|
-
};
|
|
62
|
-
return _get_prototype_of(o);
|
|
63
|
-
}
|
|
64
|
-
function _inherits(subClass, superClass) {
|
|
65
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
66
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
67
|
-
}
|
|
68
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
69
|
-
constructor: {
|
|
70
|
-
value: subClass,
|
|
71
|
-
writable: true,
|
|
72
|
-
configurable: true
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
76
|
-
}
|
|
11
|
+
const _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
const _container = /*#__PURE__*/ _interop_require_default(require("../../div/container"));
|
|
13
|
+
const _markdownStyle = /*#__PURE__*/ _interop_require_default(require("../../textarea/markdownStyle"));
|
|
14
|
+
const _markdownStyle1 = /*#__PURE__*/ _interop_require_default(require("../../textarea/parseTree/markdownStyle"));
|
|
15
|
+
const _constants = require("../../../constants");
|
|
77
16
|
function _interop_require_default(obj) {
|
|
78
17
|
return obj && obj.__esModule ? obj : {
|
|
79
18
|
default: obj
|
|
80
19
|
};
|
|
81
20
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
keys.push.apply(keys, symbols);
|
|
107
|
-
}
|
|
108
|
-
return keys;
|
|
109
|
-
}
|
|
110
|
-
function _object_spread_props(target, source) {
|
|
111
|
-
source = source != null ? source : {};
|
|
112
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
113
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
114
|
-
} else {
|
|
115
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
116
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
return target;
|
|
120
|
-
}
|
|
121
|
-
function _possible_constructor_return(self, call) {
|
|
122
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
123
|
-
return call;
|
|
124
|
-
}
|
|
125
|
-
return _assert_this_initialized(self);
|
|
126
|
-
}
|
|
127
|
-
function _set_prototype_of(o, p) {
|
|
128
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
129
|
-
o.__proto__ = p;
|
|
130
|
-
return o;
|
|
21
|
+
class MarkdownStyleContainerDiv extends _container.default {
|
|
22
|
+
show() {
|
|
23
|
+
const displayStyle = _constants.FLEX;
|
|
24
|
+
this.display(displayStyle);
|
|
25
|
+
}
|
|
26
|
+
childElements() {
|
|
27
|
+
return [
|
|
28
|
+
/*#__PURE__*/ React.createElement(_markdownStyle.default, {
|
|
29
|
+
onKeyUp: this.keyUpHandler
|
|
30
|
+
}),
|
|
31
|
+
/*#__PURE__*/ React.createElement(_markdownStyle1.default, null)
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
parentContext() {
|
|
35
|
+
const context = this.getContext(), showMarkdownStyleContainerDiv = this.show.bind(this), hideMarkdownStyleContainerDiv = this.hide.bind(this); ///
|
|
36
|
+
return {
|
|
37
|
+
...context,
|
|
38
|
+
showMarkdownStyleContainerDiv,
|
|
39
|
+
hideMarkdownStyleContainerDiv
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
static Textarea = _markdownStyle.default;
|
|
43
|
+
static defaultProperties = {
|
|
44
|
+
className: "markdown-style"
|
|
131
45
|
};
|
|
132
|
-
return _set_prototype_of(o, p);
|
|
133
|
-
}
|
|
134
|
-
function _tagged_template_literal(strings, raw) {
|
|
135
|
-
if (!raw) {
|
|
136
|
-
raw = strings.slice(0);
|
|
137
|
-
}
|
|
138
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
139
|
-
raw: {
|
|
140
|
-
value: Object.freeze(raw)
|
|
141
|
-
}
|
|
142
|
-
}));
|
|
143
46
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
return !!result;
|
|
154
|
-
})();
|
|
155
|
-
}
|
|
156
|
-
function _templateObject() {
|
|
157
|
-
var data = _tagged_template_literal([
|
|
158
|
-
"\n\n gap: 1rem;\n height: 97rem;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n \n"
|
|
159
|
-
]);
|
|
160
|
-
_templateObject = function _templateObject() {
|
|
161
|
-
return data;
|
|
162
|
-
};
|
|
163
|
-
return data;
|
|
164
|
-
}
|
|
165
|
-
var MarkdownStyleContainerDiv = /*#__PURE__*/ function(ContainerDiv) {
|
|
166
|
-
_inherits(MarkdownStyleContainerDiv, ContainerDiv);
|
|
167
|
-
function MarkdownStyleContainerDiv() {
|
|
168
|
-
_class_call_check(this, MarkdownStyleContainerDiv);
|
|
169
|
-
return _call_super(this, MarkdownStyleContainerDiv, arguments);
|
|
170
|
-
}
|
|
171
|
-
_create_class(MarkdownStyleContainerDiv, [
|
|
172
|
-
{
|
|
173
|
-
key: "show",
|
|
174
|
-
value: function show() {
|
|
175
|
-
var displayStyle = _constants.FLEX;
|
|
176
|
-
this.display(displayStyle);
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
key: "childElements",
|
|
181
|
-
value: function childElements() {
|
|
182
|
-
return [
|
|
183
|
-
/*#__PURE__*/ React.createElement(_markdownStyle.default, {
|
|
184
|
-
onKeyUp: this.keyUpHandler
|
|
185
|
-
}),
|
|
186
|
-
/*#__PURE__*/ React.createElement(_markdownStyle1.default, null)
|
|
187
|
-
];
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
key: "parentContext",
|
|
192
|
-
value: function parentContext() {
|
|
193
|
-
var context = this.getContext(), showMarkdownStyleContainerDiv = this.show.bind(this), hideMarkdownStyleContainerDiv = this.hide.bind(this); ///
|
|
194
|
-
return _object_spread_props(_object_spread({}, context), {
|
|
195
|
-
showMarkdownStyleContainerDiv: showMarkdownStyleContainerDiv,
|
|
196
|
-
hideMarkdownStyleContainerDiv: hideMarkdownStyleContainerDiv
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
]);
|
|
201
|
-
return MarkdownStyleContainerDiv;
|
|
202
|
-
}(_container.default);
|
|
203
|
-
_define_property(MarkdownStyleContainerDiv, "Textarea", _markdownStyle.default);
|
|
204
|
-
_define_property(MarkdownStyleContainerDiv, "defaultProperties", {
|
|
205
|
-
className: "markdown-style"
|
|
206
|
-
});
|
|
207
|
-
var _default = (0, _easywithstyle.default)(MarkdownStyleContainerDiv)(_templateObject());
|
|
47
|
+
const _default = (0, _easywithstyle.default)(MarkdownStyleContainerDiv)`
|
|
48
|
+
|
|
49
|
+
gap: 1rem;
|
|
50
|
+
height: 97rem;
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
|
|
55
|
+
`;
|
|
208
56
|
|
|
209
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvZGl2L2NvbnRhaW5lci9tYXJrZG93blN0eWxlLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCJlYXN5LXdpdGgtc3R5bGVcIjsgIC8vL1xuXG5pbXBvcnQgQ29udGFpbmVyRGl2IGZyb20gXCIuLi8uLi9kaXYvY29udGFpbmVyXCI7XG5pbXBvcnQgTWFya2Rvd25TdHlsZVRleHRhcmVhIGZyb20gXCIuLi8uLi90ZXh0YXJlYS9tYXJrZG93blN0eWxlXCI7XG5pbXBvcnQgTWFya2Rvd25TdHlsZVBhcnNlVGVlVGV4dGFyZWEgZnJvbSBcIi4uLy4uL3RleHRhcmVhL3BhcnNlVHJlZS9tYXJrZG93blN0eWxlXCI7XG5cbmltcG9ydCB7IEZMRVggfSBmcm9tIFwiLi4vLi4vLi4vY29uc3RhbnRzXCI7XG5cbmNsYXNzIE1hcmtkb3duU3R5bGVDb250YWluZXJEaXYgZXh0ZW5kcyBDb250YWluZXJEaXYge1xuICBzaG93KCkge1xuICAgIGNvbnN0IGRpc3BsYXlTdHlsZSA9IEZMRVg7XG5cbiAgICB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UFBRTtBQUNKO01BRUEsV0FBZUMsSUFBQUEsc0JBQVMsRUFBQ3JCLDBCQUEwQixDQUFDOzs7Ozs7OztBQVFwRCxDQUFDIn0=
|
|
@@ -8,166 +8,28 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return PlainTextContainerDiv;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function _assert_this_initialized(self) {
|
|
14
|
-
if (self === void 0) {
|
|
15
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
-
}
|
|
17
|
-
return self;
|
|
18
|
-
}
|
|
19
|
-
function _call_super(_this, derived, args) {
|
|
20
|
-
derived = _get_prototype_of(derived);
|
|
21
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
-
}
|
|
23
|
-
function _class_call_check(instance, Constructor) {
|
|
24
|
-
if (!(instance instanceof Constructor)) {
|
|
25
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _defineProperties(target, props) {
|
|
29
|
-
for(var i = 0; i < props.length; i++){
|
|
30
|
-
var descriptor = props[i];
|
|
31
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32
|
-
descriptor.configurable = true;
|
|
33
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
38
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
-
return Constructor;
|
|
41
|
-
}
|
|
42
|
-
function _define_property(obj, key, value) {
|
|
43
|
-
if (key in obj) {
|
|
44
|
-
Object.defineProperty(obj, key, {
|
|
45
|
-
value: value,
|
|
46
|
-
enumerable: true,
|
|
47
|
-
configurable: true,
|
|
48
|
-
writable: true
|
|
49
|
-
});
|
|
50
|
-
} else {
|
|
51
|
-
obj[key] = value;
|
|
52
|
-
}
|
|
53
|
-
return obj;
|
|
54
|
-
}
|
|
55
|
-
function _get_prototype_of(o) {
|
|
56
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
57
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
58
|
-
};
|
|
59
|
-
return _get_prototype_of(o);
|
|
60
|
-
}
|
|
61
|
-
function _inherits(subClass, superClass) {
|
|
62
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
63
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
64
|
-
}
|
|
65
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
66
|
-
constructor: {
|
|
67
|
-
value: subClass,
|
|
68
|
-
writable: true,
|
|
69
|
-
configurable: true
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
73
|
-
}
|
|
11
|
+
const _container = /*#__PURE__*/ _interop_require_default(require("../../div/container"));
|
|
12
|
+
const _plainText = /*#__PURE__*/ _interop_require_default(require("../../textarea/plainText"));
|
|
74
13
|
function _interop_require_default(obj) {
|
|
75
14
|
return obj && obj.__esModule ? obj : {
|
|
76
15
|
default: obj
|
|
77
16
|
};
|
|
78
17
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
var ownKeys = Object.keys(source);
|
|
83
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
84
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
85
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
86
|
-
}));
|
|
87
|
-
}
|
|
88
|
-
ownKeys.forEach(function(key) {
|
|
89
|
-
_define_property(target, key, source[key]);
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
return target;
|
|
93
|
-
}
|
|
94
|
-
function ownKeys(object, enumerableOnly) {
|
|
95
|
-
var keys = Object.keys(object);
|
|
96
|
-
if (Object.getOwnPropertySymbols) {
|
|
97
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
98
|
-
if (enumerableOnly) {
|
|
99
|
-
symbols = symbols.filter(function(sym) {
|
|
100
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
keys.push.apply(keys, symbols);
|
|
104
|
-
}
|
|
105
|
-
return keys;
|
|
106
|
-
}
|
|
107
|
-
function _object_spread_props(target, source) {
|
|
108
|
-
source = source != null ? source : {};
|
|
109
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
110
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
111
|
-
} else {
|
|
112
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
113
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
114
|
-
});
|
|
18
|
+
class PlainTextContainerDiv extends _container.default {
|
|
19
|
+
childElements() {
|
|
20
|
+
return /*#__PURE__*/ React.createElement(_plainText.default, null);
|
|
115
21
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
22
|
+
parentContext() {
|
|
23
|
+
const context = this.getContext(), showPlainTextContainerDiv = this.show.bind(this), hidePlainTextContainerDiv = this.hide.bind(this); ///
|
|
24
|
+
return {
|
|
25
|
+
...context,
|
|
26
|
+
showPlainTextContainerDiv,
|
|
27
|
+
hidePlainTextContainerDiv
|
|
28
|
+
};
|
|
121
29
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
function _set_prototype_of(o, p) {
|
|
125
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
126
|
-
o.__proto__ = p;
|
|
127
|
-
return o;
|
|
30
|
+
static defaultProperties = {
|
|
31
|
+
className: "plain-text"
|
|
128
32
|
};
|
|
129
|
-
return _set_prototype_of(o, p);
|
|
130
|
-
}
|
|
131
|
-
function _type_of(obj) {
|
|
132
|
-
"@swc/helpers - typeof";
|
|
133
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
134
33
|
}
|
|
135
|
-
function _is_native_reflect_construct() {
|
|
136
|
-
try {
|
|
137
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
138
|
-
} catch (_) {}
|
|
139
|
-
return (_is_native_reflect_construct = function() {
|
|
140
|
-
return !!result;
|
|
141
|
-
})();
|
|
142
|
-
}
|
|
143
|
-
var PlainTextContainerDiv = /*#__PURE__*/ function(ContainerDiv) {
|
|
144
|
-
_inherits(PlainTextContainerDiv, ContainerDiv);
|
|
145
|
-
function PlainTextContainerDiv() {
|
|
146
|
-
_class_call_check(this, PlainTextContainerDiv);
|
|
147
|
-
return _call_super(this, PlainTextContainerDiv, arguments);
|
|
148
|
-
}
|
|
149
|
-
_create_class(PlainTextContainerDiv, [
|
|
150
|
-
{
|
|
151
|
-
key: "childElements",
|
|
152
|
-
value: function childElements() {
|
|
153
|
-
return /*#__PURE__*/ React.createElement(_plainText.default, null);
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
key: "parentContext",
|
|
158
|
-
value: function parentContext() {
|
|
159
|
-
var context = this.getContext(), showPlainTextContainerDiv = this.show.bind(this), hidePlainTextContainerDiv = this.hide.bind(this); ///
|
|
160
|
-
return _object_spread_props(_object_spread({}, context), {
|
|
161
|
-
showPlainTextContainerDiv: showPlainTextContainerDiv,
|
|
162
|
-
hidePlainTextContainerDiv: hidePlainTextContainerDiv
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
]);
|
|
167
|
-
return PlainTextContainerDiv;
|
|
168
|
-
}(_container.default);
|
|
169
|
-
_define_property(PlainTextContainerDiv, "defaultProperties", {
|
|
170
|
-
className: "plain-text"
|
|
171
|
-
});
|
|
172
34
|
|
|
173
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvZGl2L2NvbnRhaW5lci9wbGFpblRleHQuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBDb250YWluZXJEaXYgZnJvbSBcIi4uLy4uL2Rpdi9jb250YWluZXJcIjtcbmltcG9ydCBQbGFpblRleHRUZXh0YXJlYSBmcm9tIFwiLi4vLi4vdGV4dGFyZWEvcGxhaW5UZXh0XCI7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIFBsYWluVGV4dENvbnRhaW5lckRpdiBleHRlbmRzIENvbnRhaW5lckRpdiB7XG4gIGNoaWxkRWxlbWVudHMoKSB7XG4gICAgcmV0dXJuIChcblxuICAgICAgPFBsYWluVGV4dFRleHRhcmVhLz5cblxuICAgICk7XG4gIH1cblxuICBwYXJlbnRDb250ZXh0KCkge1xuICAgIGNvbnN0IGNvbnRleHQgPSB0aGlzLmdldENvbnRleHQoKSxcbiAgICAgICAgICBzaG93UGxhaW5UZXh0Q29udGFpbmVyRGl2ID0gdGhpcy5zaG93LmJpbmQodGhpcyksICAvLy9cbiAgICAgICAgICBoaWRlUGxhaW5UZXh0Q29udGFpbmVyRGl2ID0gdGhpcy5oaWRlLmJpbmQodGhpcyk7ICAvLy9cblxuICAgIHJldHVybiAoe1xuICAgICAgLi4uY29udGV4dCxcbiAgICAgIHNob3dQbGFpblRleHRDb250YWluZXJEaXYsXG4gICAgICBoaWRlUGxhaW5UZXh0Q29udGFpbmVyRGl2XG4gICAgfSk7XG4gIH1cblxuICBzdGF0aWMgZGVmYXVsdFByb3BlcnRpZXMgPSB7XG4gICAgY2xhc3NOYW1lOiBcInBsYWluLXRleHRcIlxuICB9O1xufVxuIl0sIm5hbWVzIjpbIlBsYWluVGV4dENvbnRhaW5lckRpdiIsIkNvbnRhaW5lckRpdiIsImNoaWxkRWxlbWVudHMiLCJQbGFpblRleHRUZXh0YXJlYSIsInBhcmVudENvbnRleHQiLCJjb250ZXh0IiwiZ2V0Q29udGV4dCIsInNob3dQbGFpblRleHRDb250YWluZXJEaXYiLCJzaG93IiwiYmluZCIsImhpZGVQbGFpblRleHRDb250YWluZXJEaXYiLCJoaWRlIiwiZGVmYXVsdFByb3BlcnRpZXMiLCJjbGFzc05hbWUiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQUtBOzs7ZUFBcUJBOzs7a0VBSEk7a0VBQ0s7Ozs7OztBQUVmLE1BQU1BLDhCQUE4QkMsa0JBQVk7SUFDN0RDLGdCQUFnQjtRQUNkLHFCQUVFLG9CQUFDQyxrQkFBaUI7SUFHdEI7SUFFQUMsZ0JBQWdCO1FBQ2QsTUFBTUMsVUFBVSxJQUFJLENBQUNDLFVBQVUsSUFDekJDLDRCQUE0QixJQUFJLENBQUNDLElBQUksQ0FBQ0MsSUFBSSxDQUFDLElBQUksR0FDL0NDLDRCQUE0QixJQUFJLENBQUNDLElBQUksQ0FBQ0YsSUFBSSxDQUFDLElBQUksR0FBSSxHQUFHO1FBRTVELE9BQVE7WUFDTixHQUFHSixPQUFPO1lBQ1ZFO1lBQ0FHO1FBQ0Y7SUFDRjtJQUVBLE9BQU9FLG9CQUFvQjtRQUN6QkMsV0FBVztJQUNiLEVBQUU7QUFDSiJ9
|
|
@@ -8,186 +8,34 @@ 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 _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 _define_property(obj, key, value) {
|
|
44
|
-
if (key in obj) {
|
|
45
|
-
Object.defineProperty(obj, key, {
|
|
46
|
-
value: value,
|
|
47
|
-
enumerable: true,
|
|
48
|
-
configurable: true,
|
|
49
|
-
writable: true
|
|
50
|
-
});
|
|
51
|
-
} else {
|
|
52
|
-
obj[key] = value;
|
|
53
|
-
}
|
|
54
|
-
return obj;
|
|
55
|
-
}
|
|
56
|
-
function _get_prototype_of(o) {
|
|
57
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
58
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
59
|
-
};
|
|
60
|
-
return _get_prototype_of(o);
|
|
61
|
-
}
|
|
62
|
-
function _inherits(subClass, superClass) {
|
|
63
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
64
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
65
|
-
}
|
|
66
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
67
|
-
constructor: {
|
|
68
|
-
value: subClass,
|
|
69
|
-
writable: true,
|
|
70
|
-
configurable: true
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
74
|
-
}
|
|
11
|
+
const _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
const _preview = /*#__PURE__*/ _interop_require_default(require("../../div/preview"));
|
|
13
|
+
const _container = /*#__PURE__*/ _interop_require_default(require("../../div/container"));
|
|
75
14
|
function _interop_require_default(obj) {
|
|
76
15
|
return obj && obj.__esModule ? obj : {
|
|
77
16
|
default: obj
|
|
78
17
|
};
|
|
79
18
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
keys.push.apply(keys, symbols);
|
|
105
|
-
}
|
|
106
|
-
return keys;
|
|
107
|
-
}
|
|
108
|
-
function _object_spread_props(target, source) {
|
|
109
|
-
source = source != null ? source : {};
|
|
110
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
111
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
112
|
-
} else {
|
|
113
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
114
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
return target;
|
|
118
|
-
}
|
|
119
|
-
function _possible_constructor_return(self, call) {
|
|
120
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
121
|
-
return call;
|
|
122
|
-
}
|
|
123
|
-
return _assert_this_initialized(self);
|
|
124
|
-
}
|
|
125
|
-
function _set_prototype_of(o, p) {
|
|
126
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
127
|
-
o.__proto__ = p;
|
|
128
|
-
return o;
|
|
129
|
-
};
|
|
130
|
-
return _set_prototype_of(o, p);
|
|
131
|
-
}
|
|
132
|
-
function _tagged_template_literal(strings, raw) {
|
|
133
|
-
if (!raw) {
|
|
134
|
-
raw = strings.slice(0);
|
|
135
|
-
}
|
|
136
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
137
|
-
raw: {
|
|
138
|
-
value: Object.freeze(raw)
|
|
139
|
-
}
|
|
140
|
-
}));
|
|
141
|
-
}
|
|
142
|
-
function _type_of(obj) {
|
|
143
|
-
"@swc/helpers - typeof";
|
|
144
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
145
|
-
}
|
|
146
|
-
function _is_native_reflect_construct() {
|
|
147
|
-
try {
|
|
148
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
149
|
-
} catch (_) {}
|
|
150
|
-
return (_is_native_reflect_construct = function() {
|
|
151
|
-
return !!result;
|
|
152
|
-
})();
|
|
153
|
-
}
|
|
154
|
-
function _templateObject() {
|
|
155
|
-
var data = _tagged_template_literal([
|
|
156
|
-
"\n \n padding: 0;\n position: relative;\n \n"
|
|
157
|
-
]);
|
|
158
|
-
_templateObject = function _templateObject() {
|
|
159
|
-
return data;
|
|
160
|
-
};
|
|
161
|
-
return data;
|
|
162
|
-
}
|
|
163
|
-
var PreviewContainerDiv = /*#__PURE__*/ function(ContainerDiv) {
|
|
164
|
-
_inherits(PreviewContainerDiv, ContainerDiv);
|
|
165
|
-
function PreviewContainerDiv() {
|
|
166
|
-
_class_call_check(this, PreviewContainerDiv);
|
|
167
|
-
return _call_super(this, PreviewContainerDiv, arguments);
|
|
168
|
-
}
|
|
169
|
-
_create_class(PreviewContainerDiv, [
|
|
170
|
-
{
|
|
171
|
-
key: "childElements",
|
|
172
|
-
value: function childElements() {
|
|
173
|
-
return [
|
|
174
|
-
/*#__PURE__*/ React.createElement(_preview.default, null)
|
|
175
|
-
];
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
key: "parentContext",
|
|
180
|
-
value: function parentContext() {
|
|
181
|
-
var context = this.getContext(), showPreviewContainerDiv = this.show.bind(this), hidePreviewContainerDiv = this.hide.bind(this); ///
|
|
182
|
-
return _object_spread_props(_object_spread({}, context), {
|
|
183
|
-
showPreviewContainerDiv: showPreviewContainerDiv,
|
|
184
|
-
hidePreviewContainerDiv: hidePreviewContainerDiv
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
]);
|
|
189
|
-
return PreviewContainerDiv;
|
|
190
|
-
}(_container.default);
|
|
191
|
-
var _default = (0, _easywithstyle.default)(PreviewContainerDiv)(_templateObject());
|
|
19
|
+
class PreviewContainerDiv extends _container.default {
|
|
20
|
+
childElements() {
|
|
21
|
+
return [
|
|
22
|
+
/*#__PURE__*/ React.createElement(_preview.default, null)
|
|
23
|
+
];
|
|
24
|
+
}
|
|
25
|
+
parentContext() {
|
|
26
|
+
const context = this.getContext(), showPreviewContainerDiv = this.show.bind(this), hidePreviewContainerDiv = this.hide.bind(this); ///
|
|
27
|
+
return {
|
|
28
|
+
...context,
|
|
29
|
+
showPreviewContainerDiv,
|
|
30
|
+
hidePreviewContainerDiv
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
const _default = (0, _easywithstyle.default)(PreviewContainerDiv)`
|
|
35
|
+
|
|
36
|
+
padding: 0;
|
|
37
|
+
position: relative;
|
|
38
|
+
|
|
39
|
+
`;
|
|
192
40
|
|
|
193
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvZGl2L2NvbnRhaW5lci9wcmV2aWV3LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCJlYXN5LXdpdGgtc3R5bGVcIjsgIC8vL1xuXG5pbXBvcnQgUHJldmlld0RpdiBmcm9tIFwiLi4vLi4vZGl2L3ByZXZpZXdcIjtcbmltcG9ydCBDb250YWluZXJEaXYgZnJvbSBcIi4uLy4uL2Rpdi9jb250YWluZXJcIjtcblxuY2xhc3MgUHJldmlld0NvbnRhaW5lckRpdiBleHRlbmRzIENvbnRhaW5lckRpdiB7XG4gIGNoaWxkRWxlbWVudHMoKSB7XG4gICAgcmV0dXJuIChbXG5cbiAgICAgIDxQcmV2aWV3RGl2Lz5cblxuICAgIF0pO1xuICB9XG5cbiAgcGFyZW50Q29udGV4dCgpIHtcbiAgICBjb25zdCBjb250ZXh0ID0gdGhpcy5nZXRDb250ZXh0KCksXG4gICAgICAgICAgc2hvd1ByZXZpZXdDb250YWluZXJEaXYgPSB0aGlzLnNob3cuYmluZCh0aGlzKSwgIC8vL1xuICAgICAgICAgIGhpZGVQcmV2aWV3Q29udGFpbmVyRGl2ID0gdGhpcy5oaWRlLmJpbmQodGhpcyk7ICAvLy9cblxuICAgIHJldHVybiAoe1xuICAgICAgLi4uY29udGV4dCxcbiAgICAgIHNob3dQcmV2aWV3Q29udGFpbmVyRGl2LFxuICAgICAgaGlkZVByZXZpZXdDb250YWluZXJEaXZcbiAgICB9KTtcbiAgfVxufVxuXG5leHB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