@folklore/ads 0.0.133 → 0.0.136

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -2
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -40,8 +40,9 @@ interface Size {
40
40
  interface Viewports {
41
41
  [name: string]: Viewport;
42
42
  }
43
+ type SlotSizeMapping = Record<string, AdSize[]> | boolean | AdSizeMapping[];
43
44
  interface SlotDefinition {
44
- sizeMapping?: Record<string, AdSize[]> | boolean | null | AdSizeMapping[] | null;
45
+ sizeMapping?: SlotSizeMapping | null;
45
46
  size?: AdSize[];
46
47
  path?: string | null;
47
48
  }
@@ -332,4 +333,4 @@ declare function getSizeMappingFromSlot({ size: allSizes, sizeMapping }: Slot |
332
333
  declare function getSizeFromSizeMapping(sizeMapping: any): AdSize[] | null;
333
334
 
334
335
  export { Ad, AdSlot, AdsManager, AdsProvider, AdsTargetingProvider, propTypes_d as PropTypes, RichAd, buildSizeMappingFromSizes, buildSizeMappingFromViewports, getAdSizes, getMinimumAdSize, getSizeFromSizeMapping, getSizeMappingFromSlot, getSortedViewports, normalizeAdSizes, sizeFitsInViewport, slots, useAd, useAdsContext, useAdsTargeting, useAdsTracking, useRichAd, viewports };
335
- export type { AdSize, AdSizeMapping, AdsTargeting, RichAdType, Size, Slot, SlotDefinition, Slots, SlotsDefinition, Viewport, Viewports };
336
+ export type { AdSize, AdSizeMapping, AdsTargeting, RenderEvent, RichAdType, Size, Slot, SlotDefinition, SlotSizeMapping, Slots, SlotsDefinition, Viewport, Viewports };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@folklore/ads",
3
- "version": "0.0.133",
3
+ "version": "0.0.136",
4
4
  "description": "Ads library",
5
5
  "keywords": [
6
6
  "javascript",
@@ -56,7 +56,7 @@
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  },
59
- "gitHead": "b247c5cd2437381416c8a2019a891af6f91f8aa3",
59
+ "gitHead": "c0166324d89c31accd9736168a4fccc71650524e",
60
60
  "dependencies": {
61
61
  "@folklore/events": "^0.0.12",
62
62
  "@folklore/hooks": "^0.0.91",