@mirrormedia/lilith-draft-editor 1.1.0-alpha.31 → 1.1.0-alpha.32
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.
|
@@ -7,6 +7,8 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
9
9
|
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
10
12
|
var _apiDataInstance = _interopRequireDefault(require("./api-data-instance"));
|
|
11
13
|
|
|
12
14
|
var _entities = _interopRequireDefault(require("./entities"));
|
|
@@ -97,7 +99,7 @@ const processor = {
|
|
|
97
99
|
|
|
98
100
|
const colStyle = tableStyles === null || tableStyles === void 0 ? void 0 : (_tableStyles$columns = tableStyles.columns) === null || _tableStyles$columns === void 0 ? void 0 : _tableStyles$columns[cIndex];
|
|
99
101
|
const cellStyle = tableStyles === null || tableStyles === void 0 ? void 0 : (_tableStyles$cells = tableStyles.cells) === null || _tableStyles$cells === void 0 ? void 0 : (_tableStyles$cells$rI = _tableStyles$cells[rIndex]) === null || _tableStyles$cells$rI === void 0 ? void 0 : _tableStyles$cells$rI[cIndex];
|
|
100
|
-
return /*#__PURE__*/
|
|
102
|
+
return /*#__PURE__*/_react.default.createElement("td", {
|
|
101
103
|
key: `col_${cIndex}`,
|
|
102
104
|
style: Object.assign({}, colStyle, cellStyle),
|
|
103
105
|
dangerouslySetInnerHTML: {
|
|
@@ -105,14 +107,17 @@ const processor = {
|
|
|
105
107
|
}
|
|
106
108
|
});
|
|
107
109
|
});
|
|
108
|
-
|
|
110
|
+
console.log('colsJsx', colsJsx);
|
|
111
|
+
return /*#__PURE__*/_react.default.createElement("tr", {
|
|
109
112
|
key: `row_${rIndex}`,
|
|
110
113
|
style: tableStyles === null || tableStyles === void 0 ? void 0 : (_tableStyles$rows = tableStyles.rows) === null || _tableStyles$rows === void 0 ? void 0 : _tableStyles$rows[rIndex]
|
|
111
114
|
}, colsJsx);
|
|
112
|
-
});
|
|
115
|
+
});
|
|
116
|
+
console.log('rowsJsx', rowsJsx); // Use `React.renderToStsaticMarkup` to generate plain HTML string
|
|
113
117
|
|
|
114
|
-
const html = _server.default.renderToStaticMarkup( /*#__PURE__*/
|
|
118
|
+
const html = _server.default.renderToStaticMarkup( /*#__PURE__*/_react.default.createElement("table", null, /*#__PURE__*/_react.default.createElement("tbody", null, rowsJsx)));
|
|
115
119
|
|
|
120
|
+
console.log('html', html);
|
|
116
121
|
content = [{
|
|
117
122
|
html
|
|
118
123
|
}];
|