@mirrormedia/lilith-draft-editor 1.1.0-alpha.30 → 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__*/React.createElement("td", {
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
- return /*#__PURE__*/React.createElement("tr", {
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
- }); // Use `React.renderToStsaticMarkup` to generate plain HTML string
115
+ });
116
+ console.log('rowsJsx', rowsJsx); // Use `React.renderToStsaticMarkup` to generate plain HTML string
113
117
 
114
- const html = _server.default.renderToStaticMarkup( /*#__PURE__*/React.createElement("table", null, /*#__PURE__*/React.createElement("tbody", null, rowsJsx)));
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
  }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirrormedia/lilith-draft-editor",
3
- "version": "1.1.0-alpha.30",
3
+ "version": "1.1.0-alpha.32",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -23,7 +23,7 @@
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
25
  "draft-js": "^0.11.7",
26
- "@mirrormedia/lilith-draft-renderer": "1.3.0-alpha.16"
26
+ "@mirrormedia/lilith-draft-renderer": "1.3.0-alpha.17"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": "18.2.0",