@mjhls/mjh-framework 1.0.327 → 1.0.328
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/cjs/index.js +27 -2
- package/dist/esm/index.js +27 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -3220,16 +3220,41 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
|
|
|
3220
3220
|
publication_url: targeting.publication_url
|
|
3221
3221
|
};
|
|
3222
3222
|
|
|
3223
|
+
var collapseAd = function collapseAd() {
|
|
3224
|
+
var parent = document.getElementById('sponsored-ad-wrapper');
|
|
3225
|
+
parent.style.height = '0%';
|
|
3226
|
+
parent.style.width = '0%';
|
|
3227
|
+
parent.style.display = 'none';
|
|
3228
|
+
};
|
|
3229
|
+
|
|
3230
|
+
var checkIsAdFound = function checkIsAdFound(isFound) {
|
|
3231
|
+
if (isFound) {
|
|
3232
|
+
var parent = document.getElementById('sponsored-ad-wrapper');
|
|
3233
|
+
parent.style.display = 'block';
|
|
3234
|
+
} else {
|
|
3235
|
+
collapseAd();
|
|
3236
|
+
}
|
|
3237
|
+
};
|
|
3238
|
+
|
|
3223
3239
|
return React__default.createElement(
|
|
3224
3240
|
React__default.Fragment,
|
|
3225
3241
|
null,
|
|
3226
3242
|
React__default.createElement(
|
|
3227
3243
|
'div',
|
|
3228
|
-
{ className: 'sponsored-ad-wrapper' },
|
|
3244
|
+
{ id: 'sponsored-ad-wrapper', className: 'sponsored-ad-wrapper' },
|
|
3229
3245
|
React__default.createElement(
|
|
3230
3246
|
'div',
|
|
3231
3247
|
{ className: 'sponsored-ad' },
|
|
3232
|
-
React__default.createElement(AdSlot.DFPAdSlot, {
|
|
3248
|
+
React__default.createElement(AdSlot.DFPAdSlot, {
|
|
3249
|
+
className: className,
|
|
3250
|
+
slotId: slotId,
|
|
3251
|
+
networkID: networkID,
|
|
3252
|
+
sizes: sizes,
|
|
3253
|
+
adUnit: adUnit,
|
|
3254
|
+
targeting: adTargeting,
|
|
3255
|
+
refreshFlag: false,
|
|
3256
|
+
checkIsAdFound: checkIsAdFound
|
|
3257
|
+
})
|
|
3233
3258
|
)
|
|
3234
3259
|
)
|
|
3235
3260
|
);
|
package/dist/esm/index.js
CHANGED
|
@@ -3217,16 +3217,41 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
|
|
|
3217
3217
|
publication_url: targeting.publication_url
|
|
3218
3218
|
};
|
|
3219
3219
|
|
|
3220
|
+
var collapseAd = function collapseAd() {
|
|
3221
|
+
var parent = document.getElementById('sponsored-ad-wrapper');
|
|
3222
|
+
parent.style.height = '0%';
|
|
3223
|
+
parent.style.width = '0%';
|
|
3224
|
+
parent.style.display = 'none';
|
|
3225
|
+
};
|
|
3226
|
+
|
|
3227
|
+
var checkIsAdFound = function checkIsAdFound(isFound) {
|
|
3228
|
+
if (isFound) {
|
|
3229
|
+
var parent = document.getElementById('sponsored-ad-wrapper');
|
|
3230
|
+
parent.style.display = 'block';
|
|
3231
|
+
} else {
|
|
3232
|
+
collapseAd();
|
|
3233
|
+
}
|
|
3234
|
+
};
|
|
3235
|
+
|
|
3220
3236
|
return React__default.createElement(
|
|
3221
3237
|
React__default.Fragment,
|
|
3222
3238
|
null,
|
|
3223
3239
|
React__default.createElement(
|
|
3224
3240
|
'div',
|
|
3225
|
-
{ className: 'sponsored-ad-wrapper' },
|
|
3241
|
+
{ id: 'sponsored-ad-wrapper', className: 'sponsored-ad-wrapper' },
|
|
3226
3242
|
React__default.createElement(
|
|
3227
3243
|
'div',
|
|
3228
3244
|
{ className: 'sponsored-ad' },
|
|
3229
|
-
React__default.createElement(DFPAdSlot, {
|
|
3245
|
+
React__default.createElement(DFPAdSlot, {
|
|
3246
|
+
className: className,
|
|
3247
|
+
slotId: slotId,
|
|
3248
|
+
networkID: networkID,
|
|
3249
|
+
sizes: sizes,
|
|
3250
|
+
adUnit: adUnit,
|
|
3251
|
+
targeting: adTargeting,
|
|
3252
|
+
refreshFlag: false,
|
|
3253
|
+
checkIsAdFound: checkIsAdFound
|
|
3254
|
+
})
|
|
3230
3255
|
)
|
|
3231
3256
|
)
|
|
3232
3257
|
);
|