@folklore/ads 0.0.76 → 0.0.77

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 CHANGED
@@ -1106,6 +1106,7 @@ const propTypes = {
1106
1106
  emptyClassName: PropTypes__default["default"].string,
1107
1107
  adClassName: PropTypes__default["default"].string,
1108
1108
  richAdClassName: PropTypes__default["default"].string,
1109
+ richAdIframeClassName: PropTypes__default["default"].string,
1109
1110
  onRender: PropTypes__default["default"].func,
1110
1111
  onDestroy: PropTypes__default["default"].func,
1111
1112
  slotRef: PropTypes__default["default"].oneOfType([PropTypes__default["default"].func, PropTypes__default["default"].object])
@@ -1126,6 +1127,7 @@ const defaultProps = {
1126
1127
  emptyClassName: null,
1127
1128
  adClassName: null,
1128
1129
  richAdClassName: null,
1130
+ richAdIframeClassName: null,
1129
1131
  onRender: null,
1130
1132
  onDestroy: null,
1131
1133
  slotRef: null
@@ -1148,6 +1150,7 @@ function Ad(_ref) {
1148
1150
  emptyClassName,
1149
1151
  adClassName,
1150
1152
  richAdClassName,
1153
+ richAdIframeClassName,
1151
1154
  onRender,
1152
1155
  onDestroy,
1153
1156
  slotRef
@@ -1306,9 +1309,9 @@ function Ad(_ref) {
1306
1309
  ref: adContainerRef,
1307
1310
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
1308
1311
  id: id,
1309
- style: {
1310
- position: isRendered && richAd !== null ? 'absolute' : null
1311
- }
1312
+ className: classNames__default["default"]([{
1313
+ [richAdIframeClassName]: richAdIframeClassName !== null && isRendered && richAd !== null
1314
+ }])
1312
1315
  }), isRendered && richAd !== null ? /*#__PURE__*/jsxRuntime.jsx(RichAd, {
1313
1316
  richAd: richAd,
1314
1317
  isFluid: isFluid,
package/dist/es.js CHANGED
@@ -1088,6 +1088,7 @@ const propTypes = {
1088
1088
  emptyClassName: PropTypes.string,
1089
1089
  adClassName: PropTypes.string,
1090
1090
  richAdClassName: PropTypes.string,
1091
+ richAdIframeClassName: PropTypes.string,
1091
1092
  onRender: PropTypes.func,
1092
1093
  onDestroy: PropTypes.func,
1093
1094
  slotRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
@@ -1108,6 +1109,7 @@ const defaultProps = {
1108
1109
  emptyClassName: null,
1109
1110
  adClassName: null,
1110
1111
  richAdClassName: null,
1112
+ richAdIframeClassName: null,
1111
1113
  onRender: null,
1112
1114
  onDestroy: null,
1113
1115
  slotRef: null
@@ -1130,6 +1132,7 @@ function Ad(_ref) {
1130
1132
  emptyClassName,
1131
1133
  adClassName,
1132
1134
  richAdClassName,
1135
+ richAdIframeClassName,
1133
1136
  onRender,
1134
1137
  onDestroy,
1135
1138
  slotRef
@@ -1288,9 +1291,9 @@ function Ad(_ref) {
1288
1291
  ref: adContainerRef,
1289
1292
  children: [/*#__PURE__*/jsx("div", {
1290
1293
  id: id,
1291
- style: {
1292
- position: isRendered && richAd !== null ? 'absolute' : null
1293
- }
1294
+ className: classNames([{
1295
+ [richAdIframeClassName]: richAdIframeClassName !== null && isRendered && richAd !== null
1296
+ }])
1294
1297
  }), isRendered && richAd !== null ? /*#__PURE__*/jsx(RichAd, {
1295
1298
  richAd: richAd,
1296
1299
  isFluid: isFluid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@folklore/ads",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
4
4
  "description": "Ads library",
5
5
  "keywords": [
6
6
  "javascript",
@@ -50,7 +50,7 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "4c607d1f1a031278d3cf2249a84452a214af57b0",
53
+ "gitHead": "9396a889403576ed2daf2f06d597e9ad5b1a8ca7",
54
54
  "dependencies": {
55
55
  "@folklore/hooks": "^0.0.65",
56
56
  "@folklore/tracking": "^0.0.25",