@mjhls/mjh-framework 1.0.65 → 1.0.67

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/dist/index.js CHANGED
@@ -11082,7 +11082,7 @@ var TableShow = function TableShow(_ref) {
11082
11082
  'tr',
11083
11083
  { key: row._key },
11084
11084
  row.cells && row.cells.map(function (cell, index) {
11085
- return React__default.createElement(
11085
+ return cell && React__default.createElement(
11086
11086
  'td',
11087
11087
  { key: index },
11088
11088
  cell
@@ -11149,6 +11149,16 @@ var Media$1 = function Media$$1(_ref) {
11149
11149
  );
11150
11150
  };
11151
11151
 
11152
+ var IFrame = function IFrame(_ref) {
11153
+ var url = _ref.url;
11154
+
11155
+ return React__default.createElement(
11156
+ 'div',
11157
+ { className: 'd-block text-center mb-3' },
11158
+ React__default.createElement('iframe', { className: 'w-100', src: url, frameBorder: '0' })
11159
+ );
11160
+ };
11161
+
11152
11162
  var getSerializers$1 = function getSerializers(client) {
11153
11163
  return {
11154
11164
  types: {
@@ -11176,11 +11186,11 @@ var getSerializers$1 = function getSerializers(client) {
11176
11186
 
11177
11187
  return React__default.createElement(Sidebar, { caption: caption, content: content });
11178
11188
  },
11179
- table: function table(_ref5) {
11189
+ datatable: function datatable(_ref5) {
11180
11190
  var node = _ref5.node;
11181
- var rows = node.rows;
11191
+ var table = node.table;
11182
11192
 
11183
- return React__default.createElement(TableShow, { rows: rows });
11193
+ return React__default.createElement(TableShow, { rows: table.rows });
11184
11194
  },
11185
11195
  media: function media(_ref6) {
11186
11196
  var node = _ref6.node;
@@ -11190,6 +11200,11 @@ var getSerializers$1 = function getSerializers(client) {
11190
11200
  blank = node.blank;
11191
11201
 
11192
11202
  return React__default.createElement(Media$1, { uploadDoc: upload_doc, poster: poster, blank: blank, client: client, caption: caption });
11203
+ },
11204
+ iframe: function iframe(_ref7) {
11205
+ var node = _ref7.node;
11206
+
11207
+ return React__default.createElement(IFrame, { url: node.url });
11193
11208
  }
11194
11209
  },
11195
11210
  marks: {