@mjhls/mjh-framework 1.0.155 → 1.0.156
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/README.md +1 -1
- package/dist/index.es.js +33 -9
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +32 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { Component, useState, useEffect, useRef,
|
|
1
|
+
import React__default, { Component, useState, useEffect, useRef, createElement, createContext } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import reactDom from 'react-dom';
|
|
4
4
|
import Container from 'react-bootstrap/Container';
|
|
@@ -15271,6 +15271,25 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
15271
15271
|
);
|
|
15272
15272
|
};
|
|
15273
15273
|
|
|
15274
|
+
var NativeAd = function NativeAd(props) {
|
|
15275
|
+
var _props$node = props.node,
|
|
15276
|
+
networkID = _props$node.networkID,
|
|
15277
|
+
adUnit = _props$node.adUnit,
|
|
15278
|
+
slotId = _props$node.slotId,
|
|
15279
|
+
_props$node$targeting = _props$node.targeting,
|
|
15280
|
+
targeting = _props$node$targeting === undefined ? {} : _props$node$targeting,
|
|
15281
|
+
className = _props$node.className,
|
|
15282
|
+
sizes = _props$node.sizes,
|
|
15283
|
+
sizeMapping = _props$node.sizeMapping;
|
|
15284
|
+
|
|
15285
|
+
console.log('props', props);
|
|
15286
|
+
return React__default.createElement(
|
|
15287
|
+
'div',
|
|
15288
|
+
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
15289
|
+
React__default.createElement(AD, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
15290
|
+
);
|
|
15291
|
+
};
|
|
15292
|
+
|
|
15274
15293
|
var convertEntities = function convertEntities(props) {
|
|
15275
15294
|
if (typeof props === 'string' || props instanceof String) {
|
|
15276
15295
|
props = html_decode_1(props);
|
|
@@ -15371,6 +15390,11 @@ var getSerializers$1 = function getSerializers(client, pageview, videoAccountIDs
|
|
|
15371
15390
|
var node = _ref14.node;
|
|
15372
15391
|
|
|
15373
15392
|
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, serializerArguments: (drupalLeadSettings) });
|
|
15393
|
+
},
|
|
15394
|
+
nativeAd: function nativeAd(_ref15) {
|
|
15395
|
+
var node = _ref15.node;
|
|
15396
|
+
|
|
15397
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
15374
15398
|
}
|
|
15375
15399
|
},
|
|
15376
15400
|
marks: {
|
|
@@ -15400,32 +15424,32 @@ var getSerializers$1 = function getSerializers(client, pageview, videoAccountIDs
|
|
|
15400
15424
|
children
|
|
15401
15425
|
);
|
|
15402
15426
|
},
|
|
15403
|
-
alignleft: function alignleft(
|
|
15404
|
-
var children =
|
|
15427
|
+
alignleft: function alignleft(_ref16) {
|
|
15428
|
+
var children = _ref16.children;
|
|
15405
15429
|
return React__default.createElement(
|
|
15406
15430
|
'div',
|
|
15407
15431
|
{ style: { textAlign: 'left' } },
|
|
15408
15432
|
children
|
|
15409
15433
|
);
|
|
15410
15434
|
},
|
|
15411
|
-
alignright: function alignright(
|
|
15412
|
-
var children =
|
|
15435
|
+
alignright: function alignright(_ref17) {
|
|
15436
|
+
var children = _ref17.children;
|
|
15413
15437
|
return React__default.createElement(
|
|
15414
15438
|
'div',
|
|
15415
15439
|
{ style: { textAlign: 'right' } },
|
|
15416
15440
|
children
|
|
15417
15441
|
);
|
|
15418
15442
|
},
|
|
15419
|
-
aligncenter: function aligncenter(
|
|
15420
|
-
var children =
|
|
15443
|
+
aligncenter: function aligncenter(_ref18) {
|
|
15444
|
+
var children = _ref18.children;
|
|
15421
15445
|
return React__default.createElement(
|
|
15422
15446
|
'div',
|
|
15423
15447
|
{ style: { textAlign: 'center' } },
|
|
15424
15448
|
children
|
|
15425
15449
|
);
|
|
15426
15450
|
},
|
|
15427
|
-
alignjustify: function alignjustify(
|
|
15428
|
-
var children =
|
|
15451
|
+
alignjustify: function alignjustify(_ref19) {
|
|
15452
|
+
var children = _ref19.children;
|
|
15429
15453
|
return React__default.createElement(
|
|
15430
15454
|
'div',
|
|
15431
15455
|
{ style: { textAlign: 'justify' } },
|