@folklore/ads
Advanced tools
+8
-6
@@ -1,2 +0,1 @@ | ||
| import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
| import * as react from 'react'; | ||
@@ -135,3 +134,3 @@ import { Ref, ReactNode, ElementType } from 'react'; | ||
| } | ||
| declare function Ad({ slot: slotName, path: providedPath, size: providedSize, sizeMapping: providedSizeMapping, viewport: providedViewport, targeting: providedTargeting, refreshInterval: providedRefreshInterval, alwaysRender, disabled: providedDisabled, disableTracking, shouldKeepSize, withoutStyle, withoutMinimumSize, withReactId, className, emptyClassName, adClassName, richAdClassName, richAdIframeClassName, onRender, onDestroy, onRichAd, slotRef, }: AdProps): react_jsx_runtime.JSX.Element; | ||
| declare function Ad({ slot: slotName, path: providedPath, size: providedSize, sizeMapping: providedSizeMapping, viewport: providedViewport, targeting: providedTargeting, refreshInterval: providedRefreshInterval, alwaysRender, disabled: providedDisabled, disableTracking, shouldKeepSize, withoutStyle, withoutMinimumSize, withReactId, className, emptyClassName, adClassName, richAdClassName, richAdIframeClassName, onRender, onDestroy, onRichAd, slotRef, }: AdProps): react.JSX.Element; | ||
@@ -142,3 +141,3 @@ interface RichAdProps { | ||
| } | ||
| declare function RichAd({ richAd, ...props }: RichAdProps): react_jsx_runtime.JSX.Element; | ||
| declare function RichAd({ richAd, ...props }: RichAdProps): react.JSX.Element; | ||
@@ -252,3 +251,3 @@ declare global { | ||
| } | ||
| declare function AdsProvider({ children, defaultSlotPath, slotsPath, disableSingleRequest, disableVideoAds, disableLazyLoad, autoInit, resizeDebounceDelay, refreshOnResize, mobileScaling, renderMarginPercent, fetchMarginPercent, viewport, viewports, slots, richAdComponents, disabled, disableTracking, }: AdsProviderProps): react_jsx_runtime.JSX.Element; | ||
| declare function AdsProvider({ children, defaultSlotPath, slotsPath, disableSingleRequest, disableVideoAds, disableLazyLoad, autoInit, resizeDebounceDelay, refreshOnResize, mobileScaling, renderMarginPercent, fetchMarginPercent, viewport, viewports, slots, richAdComponents, disabled, disableTracking, }: AdsProviderProps): react.JSX.Element; | ||
@@ -261,3 +260,3 @@ declare const useAdsTargeting: () => AdsTargeting | null; | ||
| } | ||
| declare function AdsTargetingProvider({ children, targeting, replace, }: AdsTargetingProviderProps): react_jsx_runtime.JSX.Element; | ||
| declare function AdsTargetingProvider({ children, targeting, replace, }: AdsTargetingProviderProps): react.JSX.Element; | ||
@@ -306,3 +305,6 @@ declare const viewports: Viewports; | ||
| declare function sizeFitsInViewport(size: AdSize, viewport: Viewport): boolean; | ||
| declare function getSortedViewports(viewports: Viewports): any; | ||
| declare function getSortedViewports(viewports: Viewports): { | ||
| name: string; | ||
| size: googletag.SingleSizeArray; | ||
| }[]; | ||
| declare function buildSizeMappingFromViewports(sizeMapping: any, viewports: any): AdSizeMapping[]; | ||
@@ -309,0 +311,0 @@ declare function buildSizeMappingFromSizes(sizes: any, viewports: any): AdSizeMapping[]; |
+5
-5
| import { c } from 'react/compiler-runtime'; | ||
| import classNames from 'classnames'; | ||
| import { useState, useEffect, use, createContext, useId, useRef, useImperativeHandle } from 'react'; | ||
| import isArray from 'lodash/isArray'; | ||
| import isObject from 'lodash/isObject'; | ||
| import sortBy from 'lodash/sortBy'; | ||
| import uniqBy from 'lodash/uniqBy'; | ||
| import debounce from 'lodash/debounce'; | ||
| import isArray from 'lodash-es/isArray'; | ||
| import isObject from 'lodash-es/isObject'; | ||
| import sortBy from 'lodash-es/sortBy'; | ||
| import uniqBy from 'lodash-es/uniqBy'; | ||
| import debounce from 'lodash-es/debounce'; | ||
| import { EventEmitter } from '@folklore/events'; | ||
@@ -10,0 +10,0 @@ import createDebug from 'debug'; |
+5
-5
| { | ||
| "name": "@folklore/ads", | ||
| "version": "0.2.1", | ||
| "version": "0.2.2", | ||
| "description": "Ads library", | ||
@@ -57,13 +57,13 @@ "keywords": [ | ||
| }, | ||
| "gitHead": "1230f72bb0f26ba624be9cfaf8f95e93a894d0b8", | ||
| "gitHead": "31848d0f1d8e8b40a3425dc6dfb05fefeb7908d5", | ||
| "dependencies": { | ||
| "@folklore/events": "^0.0.12", | ||
| "@folklore/hooks": "^0.0.91", | ||
| "@folklore/hooks": "^0.0.92", | ||
| "@folklore/tracking": "^0.1.2", | ||
| "@folklore/utils": "^0.1.8", | ||
| "@folklore/utils": "^0.1.9", | ||
| "@types/google-publisher-tag": "^1.20260216.0", | ||
| "classnames": "^2.5.1", | ||
| "debug": "^4.3.4", | ||
| "lodash": "^4.17.21" | ||
| "lodash-es": "^4.17.21" | ||
| } | ||
| } |
2294
0.09%65972
-0.04%+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated