@mjhls/mjh-framework 1.0.155 → 1.0.157

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
@@ -15278,6 +15278,25 @@ var Slideshow$1 = function Slideshow(_ref) {
15278
15278
  );
15279
15279
  };
15280
15280
 
15281
+ var NativeAd = function NativeAd(props) {
15282
+ var _props$node = props.node,
15283
+ networkID = _props$node.networkID,
15284
+ adUnit = _props$node.adUnit,
15285
+ slotId = _props$node.slotId,
15286
+ _props$node$targeting = _props$node.targeting,
15287
+ targeting = _props$node$targeting === undefined ? {} : _props$node$targeting,
15288
+ className = _props$node.className,
15289
+ sizes = _props$node.sizes,
15290
+ sizeMapping = _props$node.sizeMapping;
15291
+
15292
+ console.log('props', props);
15293
+ return React__default.createElement(
15294
+ 'div',
15295
+ { className: 'native-ad-wrapper', style: { textAlign: 'center' } },
15296
+ React__default.createElement(AD, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
15297
+ );
15298
+ };
15299
+
15281
15300
  var convertEntities = function convertEntities(props) {
15282
15301
  if (typeof props === 'string' || props instanceof String) {
15283
15302
  props = html_decode_1(props);
@@ -15378,6 +15397,11 @@ var getSerializers$1 = function getSerializers(client, pageview, videoAccountIDs
15378
15397
  var node = _ref14.node;
15379
15398
 
15380
15399
  return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, serializerArguments: (drupalLeadSettings) });
15400
+ },
15401
+ nativeAd: function nativeAd(_ref15) {
15402
+ var node = _ref15.node;
15403
+
15404
+ return React__default.createElement(NativeAd, { node: node });
15381
15405
  }
15382
15406
  },
15383
15407
  marks: {
@@ -15407,32 +15431,32 @@ var getSerializers$1 = function getSerializers(client, pageview, videoAccountIDs
15407
15431
  children
15408
15432
  );
15409
15433
  },
15410
- alignleft: function alignleft(_ref15) {
15411
- var children = _ref15.children;
15434
+ alignleft: function alignleft(_ref16) {
15435
+ var children = _ref16.children;
15412
15436
  return React__default.createElement(
15413
15437
  'div',
15414
15438
  { style: { textAlign: 'left' } },
15415
15439
  children
15416
15440
  );
15417
15441
  },
15418
- alignright: function alignright(_ref16) {
15419
- var children = _ref16.children;
15442
+ alignright: function alignright(_ref17) {
15443
+ var children = _ref17.children;
15420
15444
  return React__default.createElement(
15421
15445
  'div',
15422
15446
  { style: { textAlign: 'right' } },
15423
15447
  children
15424
15448
  );
15425
15449
  },
15426
- aligncenter: function aligncenter(_ref17) {
15427
- var children = _ref17.children;
15450
+ aligncenter: function aligncenter(_ref18) {
15451
+ var children = _ref18.children;
15428
15452
  return React__default.createElement(
15429
15453
  'div',
15430
15454
  { style: { textAlign: 'center' } },
15431
15455
  children
15432
15456
  );
15433
15457
  },
15434
- alignjustify: function alignjustify(_ref18) {
15435
- var children = _ref18.children;
15458
+ alignjustify: function alignjustify(_ref19) {
15459
+ var children = _ref19.children;
15436
15460
  return React__default.createElement(
15437
15461
  'div',
15438
15462
  { style: { textAlign: 'justify' } },