@adstage/web-sdk 2.3.7 → 2.4.1

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/index.d.ts CHANGED
@@ -1,6 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
1
  /**
5
2
  * AdStage SDK 모듈 타입
6
3
  */
@@ -229,6 +226,7 @@ declare class AdsModule implements BaseModule {
229
226
  private _config;
230
227
  private slots;
231
228
  private advertisementEventTracker;
229
+ private adRenderer;
232
230
  /**
233
231
  * Ads 모듈 초기화 (동기)
234
232
  */
@@ -281,42 +279,15 @@ declare class AdsModule implements BaseModule {
281
279
  * 광고 생성 내부 메소드 (동기 + Lazy 로딩)
282
280
  */
283
281
  private createAd;
284
- /**
285
- * 즉시 광고 슬롯 생성 (placeholder)
286
- */
287
- private createAdSlot;
288
- /**
289
- * 컨테이너와 광고 타입에 따른 스마트한 크기 계산
290
- */
291
- private calculateAdSize;
292
- /**
293
- * 컨테이너의 실제 높이 계산
294
- */
295
- private getContainerHeight;
296
- /**
297
- * 광고 타입별 기본 높이 반환
298
- */
299
- private getDefaultHeightForAdType;
300
- /**
301
- * 이미지 크기 정보 로드 (프리로딩)
302
- */
303
- private loadImageDimensions;
304
282
  /**
305
283
  * 여러 광고의 최적 컨테이너 크기 계산 (동적 크기 조정)
306
284
  */
307
- private calculateOptimalContainerSize;
308
285
  /**
309
286
  * 최적 크기 조정 전략 선택
310
287
  */
311
- private selectOptimalSizeStrategy;
312
288
  /**
313
289
  * 전략에 따른 최적 높이 계산
314
290
  */
315
- private calculateOptimalHeight;
316
- /**
317
- * 개별 이미지에 최적화된 렌더링 스타일 적용
318
- */
319
- private applyOptimizedImageStyle;
320
291
  /**
321
292
  * 백그라운드에서 광고 콘텐츠 로드
322
293
  */
@@ -324,7 +295,6 @@ declare class AdsModule implements BaseModule {
324
295
  /**
325
296
  * 배너 광고를 위한 컨테이너 최적화
326
297
  */
327
- private optimizeContainerForBannerAds;
328
298
  /**
329
299
  * 기본 viewability 추적 시작
330
300
  */
@@ -336,11 +306,9 @@ declare class AdsModule implements BaseModule {
336
306
  /**
337
307
  * Fallback 광고 렌더링 - AdStage 확실한 컨테이너 우선 탐지
338
308
  */
339
- private renderFallback;
340
309
  /**
341
310
  * 빈 컨테이너 생성 (컨테이너를 찾지 못한 경우)
342
311
  */
343
- private createEmptyContainer;
344
312
  /**
345
313
  * 광고 데이터 가져오기
346
314
  */
@@ -348,19 +316,12 @@ declare class AdsModule implements BaseModule {
348
316
  /**
349
317
  * 광고 슬라이더 렌더링 (여러 광고 또는 autoSlide 옵션)
350
318
  */
351
- private renderAdSlider;
352
319
  /**
353
320
  * 광고 렌더링 (단일 광고용)
354
321
  */
355
- private renderAd;
356
322
  /**
357
323
  * 광고 요소 렌더링 (기본 구현)
358
324
  */
359
- private renderAdElement;
360
- /**
361
- * 최적화된 배너 이미지 렌더링
362
- */
363
- private renderOptimizedBannerImage;
364
325
  /**
365
326
  * 광고 슬롯 새로고침
366
327
  */
@@ -522,33 +483,6 @@ declare class AdStage {
522
483
  static reset(): void;
523
484
  }
524
485
 
525
- interface AdStageContextType {
526
- isInitialized: boolean;
527
- config: AdStageConfig | null;
528
- initialize: (config: AdStageConfig) => void;
529
- reset: () => void;
530
- error: string | null;
531
- }
532
- interface AdStageProviderProps {
533
- children: ReactNode;
534
- /**
535
- * 자동 초기화를 위한 설정 (선택사항)
536
- * 제공되면 Provider 마운트 시 자동으로 초기화됩니다.
537
- */
538
- config?: AdStageConfig;
539
- }
540
- declare function AdStageProvider({ children, config }: AdStageProviderProps): react_jsx_runtime.JSX.Element;
541
- /**
542
- * AdStage Context Hook
543
- * AdStageProvider 내에서 SDK 상태에 접근할 수 있습니다.
544
- */
545
- declare function useAdStage(): AdStageContextType;
546
- /**
547
- * AdStage SDK Hook
548
- * 초기화된 AdStage 인스턴스에 직접 접근할 수 있습니다.
549
- */
550
- declare function useAdStageSDK(): typeof AdStage;
551
-
552
486
  /**
553
487
  * AdStage Web SDK
554
488
  * 네임스페이스 아키텍처 기반 SDK
@@ -557,4 +491,4 @@ declare function useAdStageSDK(): typeof AdStage;
557
491
  declare const SDK_VERSION = "2.0.0";
558
492
  declare const SUPPORTED_MODULES: readonly ["ads", "events", "config"];
559
493
 
560
- export { AdEventType, AdOptions, AdSlot, AdStage, AdStageConfig, AdStageProvider, AdType, Advertisement, ApiResponse, BaseModule, EventProperties, ModuleName, OrganizationInfo, PageData, SDK_VERSION, SUPPORTED_MODULES, useAdStage, useAdStageSDK };
494
+ export { AdEventType, AdOptions, AdSlot, AdStage, AdStageConfig, AdType, Advertisement, ApiResponse, BaseModule, EventProperties, ModuleName, OrganizationInfo, PageData, SDK_VERSION, SUPPORTED_MODULES };