@folklore/ads 0.0.70 → 0.0.72
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/cjs.js +14 -3
- package/dist/es.js +14 -3
- package/package.json +3 -3
package/dist/cjs.js
CHANGED
|
@@ -853,7 +853,8 @@ const propTypes$1 = {
|
|
|
853
853
|
const defaultProps$1 = {};
|
|
854
854
|
function RichAd(_ref) {
|
|
855
855
|
let {
|
|
856
|
-
richAd
|
|
856
|
+
richAd,
|
|
857
|
+
...props
|
|
857
858
|
} = _ref;
|
|
858
859
|
const {
|
|
859
860
|
type = null,
|
|
@@ -864,6 +865,7 @@ function RichAd(_ref) {
|
|
|
864
865
|
} = useAdsContext();
|
|
865
866
|
const RichAdComponent = utils.getComponentFromName(richAdComponents, type);
|
|
866
867
|
return RichAdComponent !== null ? /*#__PURE__*/jsxRuntime.jsx(RichAdComponent, {
|
|
868
|
+
...props,
|
|
867
869
|
...richAdProps
|
|
868
870
|
}) : null;
|
|
869
871
|
}
|
|
@@ -1297,12 +1299,21 @@ function Ad(_ref) {
|
|
|
1297
1299
|
ref: refObserver,
|
|
1298
1300
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1299
1301
|
className: adClassName,
|
|
1300
|
-
style:
|
|
1302
|
+
style: {
|
|
1303
|
+
position: 'relative',
|
|
1304
|
+
...adStyle
|
|
1305
|
+
},
|
|
1301
1306
|
ref: adContainerRef,
|
|
1302
1307
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1303
|
-
id: id
|
|
1308
|
+
id: id,
|
|
1309
|
+
style: {
|
|
1310
|
+
position: isRendered && richAd !== null ? 'absolute' : null
|
|
1311
|
+
}
|
|
1304
1312
|
}), isRendered && richAd !== null ? /*#__PURE__*/jsxRuntime.jsx(RichAd, {
|
|
1305
1313
|
richAd: richAd,
|
|
1314
|
+
isFluid: isFluid,
|
|
1315
|
+
width: width,
|
|
1316
|
+
height: height,
|
|
1306
1317
|
className: richAdClassName
|
|
1307
1318
|
}) : null]
|
|
1308
1319
|
})
|
package/dist/es.js
CHANGED
|
@@ -835,7 +835,8 @@ const propTypes$1 = {
|
|
|
835
835
|
const defaultProps$1 = {};
|
|
836
836
|
function RichAd(_ref) {
|
|
837
837
|
let {
|
|
838
|
-
richAd
|
|
838
|
+
richAd,
|
|
839
|
+
...props
|
|
839
840
|
} = _ref;
|
|
840
841
|
const {
|
|
841
842
|
type = null,
|
|
@@ -846,6 +847,7 @@ function RichAd(_ref) {
|
|
|
846
847
|
} = useAdsContext();
|
|
847
848
|
const RichAdComponent = getComponentFromName(richAdComponents, type);
|
|
848
849
|
return RichAdComponent !== null ? /*#__PURE__*/jsx(RichAdComponent, {
|
|
850
|
+
...props,
|
|
849
851
|
...richAdProps
|
|
850
852
|
}) : null;
|
|
851
853
|
}
|
|
@@ -1279,12 +1281,21 @@ function Ad(_ref) {
|
|
|
1279
1281
|
ref: refObserver,
|
|
1280
1282
|
children: /*#__PURE__*/jsxs("div", {
|
|
1281
1283
|
className: adClassName,
|
|
1282
|
-
style:
|
|
1284
|
+
style: {
|
|
1285
|
+
position: 'relative',
|
|
1286
|
+
...adStyle
|
|
1287
|
+
},
|
|
1283
1288
|
ref: adContainerRef,
|
|
1284
1289
|
children: [/*#__PURE__*/jsx("div", {
|
|
1285
|
-
id: id
|
|
1290
|
+
id: id,
|
|
1291
|
+
style: {
|
|
1292
|
+
position: isRendered && richAd !== null ? 'absolute' : null
|
|
1293
|
+
}
|
|
1286
1294
|
}), isRendered && richAd !== null ? /*#__PURE__*/jsx(RichAd, {
|
|
1287
1295
|
richAd: richAd,
|
|
1296
|
+
isFluid: isFluid,
|
|
1297
|
+
width: width,
|
|
1298
|
+
height: height,
|
|
1288
1299
|
className: richAdClassName
|
|
1289
1300
|
}) : null]
|
|
1290
1301
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@folklore/ads",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.72",
|
|
4
4
|
"description": "Ads library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "84ad3594638af023e8fb0a36197dba67ae640a2e",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@folklore/hooks": "^0.0.
|
|
55
|
+
"@folklore/hooks": "^0.0.64",
|
|
56
56
|
"@folklore/tracking": "^0.0.23",
|
|
57
57
|
"@folklore/utils": "^0.1.1",
|
|
58
58
|
"classnames": "^2.5.1",
|