@folklore/ads 0.0.18 → 0.0.20
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 +13 -12
- package/dist/es.js +13 -12
- package/package.json +3 -3
package/dist/cjs.js
CHANGED
|
@@ -1016,18 +1016,19 @@ function Ad(_ref) {
|
|
|
1016
1016
|
onRender(event);
|
|
1017
1017
|
}
|
|
1018
1018
|
}, [onRender, shouldKeepSize, disabled]);
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
}
|
|
1019
|
+
|
|
1020
|
+
// useEffect(() => {
|
|
1021
|
+
// if (!disabled) {
|
|
1022
|
+
// return;
|
|
1023
|
+
// }
|
|
1024
|
+
// const keepSize = shouldKeepSize && lastRenderedSize.current !== null;
|
|
1025
|
+
// if (onRender !== null) {
|
|
1026
|
+
// onRender({
|
|
1027
|
+
// isEmpty: true,
|
|
1028
|
+
// keepSize,
|
|
1029
|
+
// });
|
|
1030
|
+
// }
|
|
1031
|
+
// }, [disabled]);
|
|
1031
1032
|
|
|
1032
1033
|
// Create ad
|
|
1033
1034
|
const {
|
package/dist/es.js
CHANGED
|
@@ -998,18 +998,19 @@ function Ad(_ref) {
|
|
|
998
998
|
onRender(event);
|
|
999
999
|
}
|
|
1000
1000
|
}, [onRender, shouldKeepSize, disabled]);
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
}
|
|
1001
|
+
|
|
1002
|
+
// useEffect(() => {
|
|
1003
|
+
// if (!disabled) {
|
|
1004
|
+
// return;
|
|
1005
|
+
// }
|
|
1006
|
+
// const keepSize = shouldKeepSize && lastRenderedSize.current !== null;
|
|
1007
|
+
// if (onRender !== null) {
|
|
1008
|
+
// onRender({
|
|
1009
|
+
// isEmpty: true,
|
|
1010
|
+
// keepSize,
|
|
1011
|
+
// });
|
|
1012
|
+
// }
|
|
1013
|
+
// }, [disabled]);
|
|
1013
1014
|
|
|
1014
1015
|
// Create ad
|
|
1015
1016
|
const {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@folklore/ads",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
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": "e1d76c01312a1d1556483e08d171f595a89016e4",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@folklore/hooks": "^0.0.
|
|
55
|
+
"@folklore/hooks": "^0.0.42",
|
|
56
56
|
"@folklore/tracking": "^0.0.16",
|
|
57
57
|
"classnames": "^2.5.1",
|
|
58
58
|
"debug": "^4.3.4",
|