@folklore/ads 0.0.15 → 0.0.16

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
@@ -1066,7 +1066,7 @@ function Ad(_ref) {
1066
1066
  }
1067
1067
  const waitingNextRender = wasDisabled.current && !isRendered;
1068
1068
  const keepSize = shouldKeepSize && (disabled || waitingNextRender) && lastRenderedSize.current !== null;
1069
- if (id === null) {
1069
+ if (id === null && !keepSize) {
1070
1070
  return null;
1071
1071
  }
1072
1072
  let adStyle = null;
package/dist/es.js CHANGED
@@ -1048,7 +1048,7 @@ function Ad(_ref) {
1048
1048
  }
1049
1049
  const waitingNextRender = wasDisabled.current && !isRendered;
1050
1050
  const keepSize = shouldKeepSize && (disabled || waitingNextRender) && lastRenderedSize.current !== null;
1051
- if (id === null) {
1051
+ if (id === null && !keepSize) {
1052
1052
  return null;
1053
1053
  }
1054
1054
  let adStyle = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@folklore/ads",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
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": "02f9a585bd24267dc0032cab26ce37b0a0a7d316",
53
+ "gitHead": "581e11b92d31eb0f5f50f810c6347a4b478832d1",
54
54
  "dependencies": {
55
55
  "@folklore/hooks": "^0.0.41",
56
56
  "@folklore/tracking": "^0.0.16",