@folklore/ads 0.0.101 → 0.0.102

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
@@ -1210,7 +1210,7 @@ function Ad(_ref) {
1210
1210
  // Size
1211
1211
  const size = providedSize || slotSize;
1212
1212
  const sizeMapping = providedSizeMapping || slotSizeMapping;
1213
- const minimumSize = React.useMemo(() => getMinimumAdSize(sizeMapping !== null ? sizeMapping.reduce((allSizes, sizeMap) => [...allSizes, sizeMap[1]], [size]) : [size]), [sizeMapping, size]);
1213
+ const minimumSize = React.useMemo(() => getMinimumAdSize(sizeMapping !== null ? sizeMapping.reduce((allSizes, sizeMap) => [...allSizes, ...sizeMap[1]], [size]) : [size]), [sizeMapping, size]);
1214
1214
 
1215
1215
  // Targeting
1216
1216
  const contextTargeting = useAdsTargeting();
package/dist/es.js CHANGED
@@ -1208,7 +1208,7 @@ function Ad(_ref) {
1208
1208
  // Size
1209
1209
  const size = providedSize || slotSize;
1210
1210
  const sizeMapping = providedSizeMapping || slotSizeMapping;
1211
- const minimumSize = useMemo(() => getMinimumAdSize(sizeMapping !== null ? sizeMapping.reduce((allSizes, sizeMap) => [...allSizes, sizeMap[1]], [size]) : [size]), [sizeMapping, size]);
1211
+ const minimumSize = useMemo(() => getMinimumAdSize(sizeMapping !== null ? sizeMapping.reduce((allSizes, sizeMap) => [...allSizes, ...sizeMap[1]], [size]) : [size]), [sizeMapping, size]);
1212
1212
 
1213
1213
  // Targeting
1214
1214
  const contextTargeting = useAdsTargeting();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@folklore/ads",
3
- "version": "0.0.101",
3
+ "version": "0.0.102",
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": "4d23bd8673f61fcb67526866cf0366455f4f674a",
53
+ "gitHead": "88bd18e811d5872888c552e78c10b169d5ab0b3b",
54
54
  "dependencies": {
55
55
  "@folklore/hooks": "^0.0.72",
56
56
  "@folklore/tracking": "^0.0.29",