@vonaffenfels/slate-editor 1.2.30 → 1.2.41
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/.babelrc +43 -43
- package/README.md +5 -5
- package/componentLoader.js +93 -93
- package/dist/BlockEditor.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/postcss.config.js +6 -6
- package/scss/demo.scss +148 -148
- package/scss/sidebarEditor.scss +185 -185
- package/scss/toolbar.scss +162 -162
- package/src/Blocks/EmptyBlock.js +11 -11
- package/src/Blocks/EmptyWrapper.js +4 -4
- package/src/Blocks/ErrorBoundary.js +40 -40
- package/src/Blocks/LayoutBlock.js +274 -274
- package/src/Blocks/LayoutSlot.js +90 -90
- package/src/CollapsableMenu/CollapsableMenu.js +48 -48
- package/src/Context/StorybookContext.js +6 -6
- package/src/ElementAutocomplete.js +134 -134
- package/src/Loader.js +137 -137
- package/src/Nodes/Default.js +162 -162
- package/src/Nodes/Leaf.js +54 -54
- package/src/Nodes/Text.js +97 -97
- package/src/ObjectId.js +3 -3
- package/src/Renderer.js +73 -73
- package/src/Serializer/Html.js +42 -42
- package/src/Serializer/Serializer.js +374 -374
- package/src/Serializer/Text.js +17 -17
- package/src/Serializer/ads.js +187 -187
- package/src/Serializer/index.js +3 -3
- package/src/SidebarEditor/AssetList.js +185 -181
- package/src/SidebarEditor/Fields/CloudinaryContentSelect.js +89 -89
- package/src/SidebarEditor/Fields/ColorPicker.js +89 -89
- package/src/SidebarEditor/Fields/ContentfulContentSelect.js +63 -62
- package/src/SidebarEditor/Fields/DateTime.js +55 -55
- package/src/SidebarEditor/Fields/MVP.js +66 -66
- package/src/SidebarEditor/Fields/MultiSelect.js +13 -13
- package/src/SidebarEditor/Fields/RemoteMultiSelect.js +40 -40
- package/src/SidebarEditor/Fields/RemoteSelect.js +39 -39
- package/src/SidebarEditor/Fields/Select.js +47 -47
- package/src/SidebarEditor/Fields/StreamSelect.js +15 -15
- package/src/SidebarEditor/Fields/Switch.js +34 -34
- package/src/SidebarEditor/Fields/Textarea.js +21 -21
- package/src/SidebarEditor/Resizable.js +85 -85
- package/src/Storybook.js +151 -151
- package/src/Toolbar/Align.js +64 -64
- package/src/Toolbar/Anchor.js +94 -94
- package/src/Toolbar/Block.js +135 -135
- package/src/Toolbar/Element.js +44 -44
- package/src/Toolbar/Formats.js +71 -71
- package/src/Toolbar/Insert.js +28 -28
- package/src/Toolbar/Layout.js +399 -399
- package/src/Toolbar/Link.js +164 -164
- package/src/Toolbar/Toolbar.js +235 -235
- package/src/Tools/Margin.js +51 -51
- package/src/Translation/TranslationToolbarButton.js +119 -119
- package/src/dev/draftToSlate.json +3147 -3147
- package/src/dev/index.css +2 -2
- package/src/dev/index.html +10 -10
- package/src/dev/index.js +4 -4
- package/src/dev/sampleValue1.json +4294 -4294
- package/src/dev/sampleValueValid.json +410 -410
- package/src/dev/testComponents/TestStory.js +74 -74
- package/src/dev/testComponents/TestStory.stories.js +216 -216
- package/src/dev/testComponents/TestStory2.js +74 -74
- package/src/dev/testComponents/TestStory2.stories.js +197 -197
- package/src/dev/testComponents/TestStory3.js +74 -74
- package/src/dev/testComponents/TestStory3.stories.js +197 -197
- package/src/dev/testSampleValue.json +746 -746
- package/src/fromHTML.js +4 -4
- package/src/helper/array.js +8 -8
- package/src/index.js +10 -10
- package/src/plugins/ListItem.js +48 -48
- package/src/plugins/SoftBreak.js +23 -23
- package/src/toHTML.js +6 -6
- package/src/toText.js +6 -6
- package/src/util/reduceContentfulResponse.js +64 -64
- package/src/util.js +19 -19
- package/storyLoader.js +47 -47
- package/tailwind.config.js +4 -4
- package/webpack.config.build.js +55 -55
- package/webpack.config.dev.js +60 -60
- package/webpack.config.js +130 -130
- package/webpack.config.watch.js +4 -4
package/src/Serializer/Text.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import escapeHtml from 'escape-html';
|
|
2
|
-
import {Text} from 'slate';
|
|
3
|
-
|
|
4
|
-
export const TextSerializer = (slateValue) => {
|
|
5
|
-
if (!Array.isArray(slateValue)) {
|
|
6
|
-
return "";
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
return slateValue.map(serializeNode).join('');
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const serializeNode = (node) => {
|
|
13
|
-
if (Text.isText(node)) {
|
|
14
|
-
return escapeHtml(node.text);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
return node.children.map(n => serializeNode(n)).join(' ');
|
|
1
|
+
import escapeHtml from 'escape-html';
|
|
2
|
+
import {Text} from 'slate';
|
|
3
|
+
|
|
4
|
+
export const TextSerializer = (slateValue) => {
|
|
5
|
+
if (!Array.isArray(slateValue)) {
|
|
6
|
+
return "";
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
return slateValue.map(serializeNode).join('');
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const serializeNode = (node) => {
|
|
13
|
+
if (Text.isText(node)) {
|
|
14
|
+
return escapeHtml(node.text);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return node.children.map(n => serializeNode(n)).join(' ');
|
|
18
18
|
};
|
package/src/Serializer/ads.js
CHANGED
|
@@ -1,188 +1,188 @@
|
|
|
1
|
-
export const addAdsToValue = (value, adDefinitionDesktop = [], adDefinitionMobile = []) => {
|
|
2
|
-
let extendedValue = [];
|
|
3
|
-
let counters = {
|
|
4
|
-
fullTextCounter: 0,
|
|
5
|
-
currTextCounterDesktop: 0,
|
|
6
|
-
currTextCounterMobile: 0,
|
|
7
|
-
currTextLength: 0,
|
|
8
|
-
currElementsChain: [],
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
let remainingDesktop = [...adDefinitionDesktop];
|
|
12
|
-
let remainingMobile = [...adDefinitionMobile];
|
|
13
|
-
|
|
14
|
-
for (let i = 0; i < value.length; i++) {
|
|
15
|
-
const element = value[i];
|
|
16
|
-
const nextElement = value[i + 1] || null;
|
|
17
|
-
const textLength = getElementTextLength(element);
|
|
18
|
-
const isPlaceable = isAdPlaceable(element, counters);
|
|
19
|
-
|
|
20
|
-
let placementDesktop = "after";
|
|
21
|
-
let placementMobile = "after";
|
|
22
|
-
let placedAdDesktop = null;
|
|
23
|
-
let placedAdMobile = null;
|
|
24
|
-
|
|
25
|
-
counters.fullTextCounter += textLength;
|
|
26
|
-
counters.currTextCounterDesktop += textLength;
|
|
27
|
-
counters.currTextCounterMobile += textLength;
|
|
28
|
-
counters.currTextLength = textLength;
|
|
29
|
-
|
|
30
|
-
if (isPlaceable) {
|
|
31
|
-
const currAd = remainingDesktop.shift();
|
|
32
|
-
const currAdMobile = remainingMobile.shift();
|
|
33
|
-
|
|
34
|
-
counters.currElementsChain.push(element);
|
|
35
|
-
|
|
36
|
-
if (checkAdPlacement(
|
|
37
|
-
currAd, counters, counters.currTextCounterDesktop, element, nextElement,
|
|
38
|
-
)) {
|
|
39
|
-
placedAdDesktop = currAd;
|
|
40
|
-
if (currAd.reset !== false) {
|
|
41
|
-
counters.currTextCounterDesktop = 0;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (checkAdPlacement(
|
|
46
|
-
currAdMobile, counters, counters.currTextCounterMobile, element, nextElement,
|
|
47
|
-
)) {
|
|
48
|
-
placedAdMobile = currAdMobile;
|
|
49
|
-
if (currAdMobile.reset !== false) {
|
|
50
|
-
counters.currTextCounterMobile = 0;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (placedAdDesktop?.placement) {
|
|
55
|
-
placementDesktop = placedAdDesktop?.placement;
|
|
56
|
-
} else if (placedAdDesktop?.inline) {
|
|
57
|
-
placementDesktop = "before";
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
if (placedAdMobile?.placement) {
|
|
61
|
-
placementMobile = placedAdMobile?.placement;
|
|
62
|
-
} else if (placedAdMobile?.inline) {
|
|
63
|
-
placementMobile = "before";
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
if (placedAdDesktop && placementDesktop === "before") {
|
|
67
|
-
extendedValue.push(placedAdDesktop.component);
|
|
68
|
-
}
|
|
69
|
-
if (placedAdMobile && placementMobile === "before") {
|
|
70
|
-
extendedValue.push(placedAdMobile.component);
|
|
71
|
-
}
|
|
72
|
-
extendedValue = extendedValue.concat(counters.currElementsChain);
|
|
73
|
-
if (placedAdDesktop && placementDesktop === "after") {
|
|
74
|
-
extendedValue.push(placedAdDesktop.component);
|
|
75
|
-
}
|
|
76
|
-
if (placedAdMobile && placementMobile === "after") {
|
|
77
|
-
extendedValue.push(placedAdMobile.component);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
counters.currElementsChain = [];
|
|
81
|
-
|
|
82
|
-
// add the elements back, did not get placed!
|
|
83
|
-
if (!placedAdDesktop && currAd) {
|
|
84
|
-
remainingDesktop.unshift(currAd);
|
|
85
|
-
}
|
|
86
|
-
if (!placedAdMobile && currAdMobile) {
|
|
87
|
-
remainingMobile.unshift(currAdMobile);
|
|
88
|
-
}
|
|
89
|
-
} else {
|
|
90
|
-
counters.currElementsChain.push(element);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (counters.currElementsChain.length) {
|
|
95
|
-
extendedValue = extendedValue.concat(counters.currElementsChain);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return extendedValue;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* checks if ad is placeable, ads can NOT be placed
|
|
103
|
-
* 1. after headlines
|
|
104
|
-
* 2. after galleries (should be before)
|
|
105
|
-
*
|
|
106
|
-
* @param element
|
|
107
|
-
* @param counters
|
|
108
|
-
*/
|
|
109
|
-
const isAdPlaceable = (element, counters) => {
|
|
110
|
-
const type = element?.type;
|
|
111
|
-
const chain = counters?.currElementsChain || [];
|
|
112
|
-
|
|
113
|
-
if (type === "paragraph") {
|
|
114
|
-
return true;
|
|
115
|
-
} else if (type === "storybook") {
|
|
116
|
-
return true;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// start of a new chain!
|
|
120
|
-
return false;
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
const checkAdPlacement = (
|
|
124
|
-
ad, counters, currTextCounter = 0, element = null, nextElement = null,
|
|
125
|
-
) => {
|
|
126
|
-
let canBePlaced = false;
|
|
127
|
-
|
|
128
|
-
if (!ad) {
|
|
129
|
-
return canBePlaced;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// can instantly be placed
|
|
133
|
-
if (!ad.space) {
|
|
134
|
-
canBePlaced = true;
|
|
135
|
-
} else if (currTextCounter > ad.space) {
|
|
136
|
-
canBePlaced = true;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
const disallowedAdjacents = ad?.disallowedAdjacents || [
|
|
140
|
-
"Inline/ProductTeaser",
|
|
141
|
-
"Inline/AboTeaser",
|
|
142
|
-
];
|
|
143
|
-
|
|
144
|
-
// dont allow ads before+after disallowedAdjacents elements
|
|
145
|
-
if (element?.type === "storybook" && disallowedAdjacents.includes(element?.block)) {
|
|
146
|
-
canBePlaced = false;
|
|
147
|
-
} else if (nextElement?.type === "storybook" && disallowedAdjacents.includes(nextElement?.block)) {
|
|
148
|
-
canBePlaced = false;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// dont allow inline anywhere BUT paragraphs
|
|
152
|
-
if (ad?.inline && element?.type !== "paragraph") {
|
|
153
|
-
canBePlaced = false;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
return canBePlaced;
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
const getElementTextLength = (el) => {
|
|
160
|
-
let textLength = 0;
|
|
161
|
-
|
|
162
|
-
// children
|
|
163
|
-
if (el.children) {
|
|
164
|
-
for (let i = 0; i < el.children.length; i++) {
|
|
165
|
-
const child = el.children[i];
|
|
166
|
-
textLength += getElementTextLength(child);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
// generic text
|
|
171
|
-
if (el.text) {
|
|
172
|
-
textLength += parseInt(el?.text?.length || 0);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
// elements
|
|
176
|
-
if (el.type === "storybook") {
|
|
177
|
-
switch (el?.block) {
|
|
178
|
-
case "Media/Image":
|
|
179
|
-
case "Media/Gallery":
|
|
180
|
-
textLength += 100;
|
|
181
|
-
break;
|
|
182
|
-
default:
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
return textLength;
|
|
1
|
+
export const addAdsToValue = (value, adDefinitionDesktop = [], adDefinitionMobile = []) => {
|
|
2
|
+
let extendedValue = [];
|
|
3
|
+
let counters = {
|
|
4
|
+
fullTextCounter: 0,
|
|
5
|
+
currTextCounterDesktop: 0,
|
|
6
|
+
currTextCounterMobile: 0,
|
|
7
|
+
currTextLength: 0,
|
|
8
|
+
currElementsChain: [],
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
let remainingDesktop = [...adDefinitionDesktop];
|
|
12
|
+
let remainingMobile = [...adDefinitionMobile];
|
|
13
|
+
|
|
14
|
+
for (let i = 0; i < value.length; i++) {
|
|
15
|
+
const element = value[i];
|
|
16
|
+
const nextElement = value[i + 1] || null;
|
|
17
|
+
const textLength = getElementTextLength(element);
|
|
18
|
+
const isPlaceable = isAdPlaceable(element, counters);
|
|
19
|
+
|
|
20
|
+
let placementDesktop = "after";
|
|
21
|
+
let placementMobile = "after";
|
|
22
|
+
let placedAdDesktop = null;
|
|
23
|
+
let placedAdMobile = null;
|
|
24
|
+
|
|
25
|
+
counters.fullTextCounter += textLength;
|
|
26
|
+
counters.currTextCounterDesktop += textLength;
|
|
27
|
+
counters.currTextCounterMobile += textLength;
|
|
28
|
+
counters.currTextLength = textLength;
|
|
29
|
+
|
|
30
|
+
if (isPlaceable) {
|
|
31
|
+
const currAd = remainingDesktop.shift();
|
|
32
|
+
const currAdMobile = remainingMobile.shift();
|
|
33
|
+
|
|
34
|
+
counters.currElementsChain.push(element);
|
|
35
|
+
|
|
36
|
+
if (checkAdPlacement(
|
|
37
|
+
currAd, counters, counters.currTextCounterDesktop, element, nextElement,
|
|
38
|
+
)) {
|
|
39
|
+
placedAdDesktop = currAd;
|
|
40
|
+
if (currAd.reset !== false) {
|
|
41
|
+
counters.currTextCounterDesktop = 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (checkAdPlacement(
|
|
46
|
+
currAdMobile, counters, counters.currTextCounterMobile, element, nextElement,
|
|
47
|
+
)) {
|
|
48
|
+
placedAdMobile = currAdMobile;
|
|
49
|
+
if (currAdMobile.reset !== false) {
|
|
50
|
+
counters.currTextCounterMobile = 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (placedAdDesktop?.placement) {
|
|
55
|
+
placementDesktop = placedAdDesktop?.placement;
|
|
56
|
+
} else if (placedAdDesktop?.inline) {
|
|
57
|
+
placementDesktop = "before";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (placedAdMobile?.placement) {
|
|
61
|
+
placementMobile = placedAdMobile?.placement;
|
|
62
|
+
} else if (placedAdMobile?.inline) {
|
|
63
|
+
placementMobile = "before";
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (placedAdDesktop && placementDesktop === "before") {
|
|
67
|
+
extendedValue.push(placedAdDesktop.component);
|
|
68
|
+
}
|
|
69
|
+
if (placedAdMobile && placementMobile === "before") {
|
|
70
|
+
extendedValue.push(placedAdMobile.component);
|
|
71
|
+
}
|
|
72
|
+
extendedValue = extendedValue.concat(counters.currElementsChain);
|
|
73
|
+
if (placedAdDesktop && placementDesktop === "after") {
|
|
74
|
+
extendedValue.push(placedAdDesktop.component);
|
|
75
|
+
}
|
|
76
|
+
if (placedAdMobile && placementMobile === "after") {
|
|
77
|
+
extendedValue.push(placedAdMobile.component);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
counters.currElementsChain = [];
|
|
81
|
+
|
|
82
|
+
// add the elements back, did not get placed!
|
|
83
|
+
if (!placedAdDesktop && currAd) {
|
|
84
|
+
remainingDesktop.unshift(currAd);
|
|
85
|
+
}
|
|
86
|
+
if (!placedAdMobile && currAdMobile) {
|
|
87
|
+
remainingMobile.unshift(currAdMobile);
|
|
88
|
+
}
|
|
89
|
+
} else {
|
|
90
|
+
counters.currElementsChain.push(element);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (counters.currElementsChain.length) {
|
|
95
|
+
extendedValue = extendedValue.concat(counters.currElementsChain);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return extendedValue;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* checks if ad is placeable, ads can NOT be placed
|
|
103
|
+
* 1. after headlines
|
|
104
|
+
* 2. after galleries (should be before)
|
|
105
|
+
*
|
|
106
|
+
* @param element
|
|
107
|
+
* @param counters
|
|
108
|
+
*/
|
|
109
|
+
const isAdPlaceable = (element, counters) => {
|
|
110
|
+
const type = element?.type;
|
|
111
|
+
const chain = counters?.currElementsChain || [];
|
|
112
|
+
|
|
113
|
+
if (type === "paragraph") {
|
|
114
|
+
return true;
|
|
115
|
+
} else if (type === "storybook") {
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// start of a new chain!
|
|
120
|
+
return false;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const checkAdPlacement = (
|
|
124
|
+
ad, counters, currTextCounter = 0, element = null, nextElement = null,
|
|
125
|
+
) => {
|
|
126
|
+
let canBePlaced = false;
|
|
127
|
+
|
|
128
|
+
if (!ad) {
|
|
129
|
+
return canBePlaced;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// can instantly be placed
|
|
133
|
+
if (!ad.space) {
|
|
134
|
+
canBePlaced = true;
|
|
135
|
+
} else if (currTextCounter > ad.space) {
|
|
136
|
+
canBePlaced = true;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const disallowedAdjacents = ad?.disallowedAdjacents || [
|
|
140
|
+
"Inline/ProductTeaser",
|
|
141
|
+
"Inline/AboTeaser",
|
|
142
|
+
];
|
|
143
|
+
|
|
144
|
+
// dont allow ads before+after disallowedAdjacents elements
|
|
145
|
+
if (element?.type === "storybook" && disallowedAdjacents.includes(element?.block)) {
|
|
146
|
+
canBePlaced = false;
|
|
147
|
+
} else if (nextElement?.type === "storybook" && disallowedAdjacents.includes(nextElement?.block)) {
|
|
148
|
+
canBePlaced = false;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// dont allow inline anywhere BUT paragraphs
|
|
152
|
+
if (ad?.inline && element?.type !== "paragraph") {
|
|
153
|
+
canBePlaced = false;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
return canBePlaced;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
const getElementTextLength = (el) => {
|
|
160
|
+
let textLength = 0;
|
|
161
|
+
|
|
162
|
+
// children
|
|
163
|
+
if (el.children) {
|
|
164
|
+
for (let i = 0; i < el.children.length; i++) {
|
|
165
|
+
const child = el.children[i];
|
|
166
|
+
textLength += getElementTextLength(child);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// generic text
|
|
171
|
+
if (el.text) {
|
|
172
|
+
textLength += parseInt(el?.text?.length || 0);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// elements
|
|
176
|
+
if (el.type === "storybook") {
|
|
177
|
+
switch (el?.block) {
|
|
178
|
+
case "Media/Image":
|
|
179
|
+
case "Media/Gallery":
|
|
180
|
+
textLength += 100;
|
|
181
|
+
break;
|
|
182
|
+
default:
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
return textLength;
|
|
188
188
|
};
|
package/src/Serializer/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Serializer} from "./Serializer";
|
|
2
|
-
import {HtmlSerializer} from "./Html";
|
|
3
|
-
|
|
1
|
+
import {Serializer} from "./Serializer";
|
|
2
|
+
import {HtmlSerializer} from "./Html";
|
|
3
|
+
|
|
4
4
|
export {Serializer, HtmlSerializer};
|