@folklore/ads 0.0.88 → 0.0.90

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
@@ -937,7 +937,7 @@ function useAd(path, size) {
937
937
  adsManager.destroySlot(newSlot);
938
938
  }
939
939
  };
940
- }, [adsManager, path, disabled, size, sizeMapping, alwaysRender, categoryExclusions]);
940
+ }, [adsManager, path, disabled, size, sizeMapping, categoryExclusions]);
941
941
  React.useEffect(() => {
942
942
  if (slot !== null) {
943
943
  slot.setTargeting(targeting);
@@ -959,7 +959,7 @@ function useAd(path, size) {
959
959
  }
960
960
  }, [adsManager, adsReady, slot]);
961
961
  React.useEffect(() => {
962
- const slotReady = slot !== null && !slot.isDefined();
962
+ const slotReady = slot !== null && !slot.isDisplayed();
963
963
  if (adsReady && slotReady && (alwaysRender || isVisible)) {
964
964
  adsManager.displaySlot(slot);
965
965
  track('Init', slot);
package/dist/es.js CHANGED
@@ -935,7 +935,7 @@ function useAd(path, size) {
935
935
  adsManager.destroySlot(newSlot);
936
936
  }
937
937
  };
938
- }, [adsManager, path, disabled, size, sizeMapping, alwaysRender, categoryExclusions]);
938
+ }, [adsManager, path, disabled, size, sizeMapping, categoryExclusions]);
939
939
  useEffect(() => {
940
940
  if (slot !== null) {
941
941
  slot.setTargeting(targeting);
@@ -957,7 +957,7 @@ function useAd(path, size) {
957
957
  }
958
958
  }, [adsManager, adsReady, slot]);
959
959
  useEffect(() => {
960
- const slotReady = slot !== null && !slot.isDefined();
960
+ const slotReady = slot !== null && !slot.isDisplayed();
961
961
  if (adsReady && slotReady && (alwaysRender || isVisible)) {
962
962
  adsManager.displaySlot(slot);
963
963
  track('Init', slot);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@folklore/ads",
3
- "version": "0.0.88",
3
+ "version": "0.0.90",
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": "fa893ed41d00c669cfab5c7780b25dc6a4f6ecf8",
53
+ "gitHead": "65b5d27ef88f7fa8f39385476cb9764194417870",
54
54
  "dependencies": {
55
55
  "@folklore/hooks": "^0.0.71",
56
56
  "@folklore/tracking": "^0.0.26",