@adstage/web-sdk 2.5.1 → 2.5.3

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.cjs.js CHANGED
@@ -499,7 +499,7 @@ class ApiHeaders {
499
499
  * AdStage SDK - 버전 정보 유틸리티
500
500
  */
501
501
  // package.json에서 버전 정보 가져오기 (빌드 시 자동으로 교체됨)
502
- const SDK_VERSION$1 = '"2.5.1"';
502
+ const SDK_VERSION$1 = '"2.5.3"';
503
503
  /**
504
504
  * SDK 버전 정보 반환
505
505
  */
@@ -1371,6 +1371,7 @@ class CarouselSliderManager {
1371
1371
  });
1372
1372
  }
1373
1373
  // 현재 슬라이드의 광고에 대해 노출 이벤트 추적 (모든 슬라이드 포함)
1374
+ console.log(`🎯 Triggering VIEWABLE event for slide change: ad ${advertisements[actualIndex]._id} (index: ${actualIndex}) in slot: ${slot.id}`);
1374
1375
  trackEventCallback(advertisements[actualIndex]._id, slot.id, AdEventType.VIEWABLE);
1375
1376
  };
1376
1377
  // 무한 루프 처리 함수
@@ -1413,12 +1414,8 @@ class CarouselSliderManager {
1413
1414
  if (dotContainer) {
1414
1415
  sliderWrapper.appendChild(dotContainer);
1415
1416
  }
1416
- // 첫 번째 도트 활성화 초기 VIEWABLE 이벤트 발생
1417
+ // 첫 번째 도트 활성화 (moveToSlide에서 자동으로 VIEWABLE 이벤트 발생)
1417
1418
  moveToSlide(0);
1418
- // 슬라이더 DOM 추가 후 첫 번째 광고 VIEWABLE 이벤트 트리거 (500ms 후 실제 노출 확인)
1419
- setTimeout(() => {
1420
- trackEventCallback(advertisements[0]._id, slot.id, AdEventType.VIEWABLE);
1421
- }, 500);
1422
1419
  // 사용자가 크기를 지정하지 않은 경우, 첫 번째 슬라이드 크기에 맞춰 래퍼 크기 동적 조정
1423
1420
  if (!slot.width || slot.width === 0) {
1424
1421
  // DOM 렌더링 후 크기 측정
package/dist/index.esm.js CHANGED
@@ -497,7 +497,7 @@ class ApiHeaders {
497
497
  * AdStage SDK - 버전 정보 유틸리티
498
498
  */
499
499
  // package.json에서 버전 정보 가져오기 (빌드 시 자동으로 교체됨)
500
- const SDK_VERSION$1 = '"2.5.1"';
500
+ const SDK_VERSION$1 = '"2.5.3"';
501
501
  /**
502
502
  * SDK 버전 정보 반환
503
503
  */
@@ -1369,6 +1369,7 @@ class CarouselSliderManager {
1369
1369
  });
1370
1370
  }
1371
1371
  // 현재 슬라이드의 광고에 대해 노출 이벤트 추적 (모든 슬라이드 포함)
1372
+ console.log(`🎯 Triggering VIEWABLE event for slide change: ad ${advertisements[actualIndex]._id} (index: ${actualIndex}) in slot: ${slot.id}`);
1372
1373
  trackEventCallback(advertisements[actualIndex]._id, slot.id, AdEventType.VIEWABLE);
1373
1374
  };
1374
1375
  // 무한 루프 처리 함수
@@ -1411,12 +1412,8 @@ class CarouselSliderManager {
1411
1412
  if (dotContainer) {
1412
1413
  sliderWrapper.appendChild(dotContainer);
1413
1414
  }
1414
- // 첫 번째 도트 활성화 초기 VIEWABLE 이벤트 발생
1415
+ // 첫 번째 도트 활성화 (moveToSlide에서 자동으로 VIEWABLE 이벤트 발생)
1415
1416
  moveToSlide(0);
1416
- // 슬라이더 DOM 추가 후 첫 번째 광고 VIEWABLE 이벤트 트리거 (500ms 후 실제 노출 확인)
1417
- setTimeout(() => {
1418
- trackEventCallback(advertisements[0]._id, slot.id, AdEventType.VIEWABLE);
1419
- }, 500);
1420
1417
  // 사용자가 크기를 지정하지 않은 경우, 첫 번째 슬라이드 크기에 맞춰 래퍼 크기 동적 조정
1421
1418
  if (!slot.width || slot.width === 0) {
1422
1419
  // DOM 렌더링 후 크기 측정
@@ -494,7 +494,7 @@ class ApiHeaders {
494
494
  * AdStage SDK - 버전 정보 유틸리티
495
495
  */
496
496
  // package.json에서 버전 정보 가져오기 (빌드 시 자동으로 교체됨)
497
- const SDK_VERSION$1 = '"2.5.1"';
497
+ const SDK_VERSION$1 = '"2.5.3"';
498
498
  /**
499
499
  * SDK 버전 정보 반환
500
500
  */
@@ -1366,6 +1366,7 @@ class CarouselSliderManager {
1366
1366
  });
1367
1367
  }
1368
1368
  // 현재 슬라이드의 광고에 대해 노출 이벤트 추적 (모든 슬라이드 포함)
1369
+ console.log(`🎯 Triggering VIEWABLE event for slide change: ad ${advertisements[actualIndex]._id} (index: ${actualIndex}) in slot: ${slot.id}`);
1369
1370
  trackEventCallback(advertisements[actualIndex]._id, slot.id, AdEventType.VIEWABLE);
1370
1371
  };
1371
1372
  // 무한 루프 처리 함수
@@ -1408,12 +1409,8 @@ class CarouselSliderManager {
1408
1409
  if (dotContainer) {
1409
1410
  sliderWrapper.appendChild(dotContainer);
1410
1411
  }
1411
- // 첫 번째 도트 활성화 초기 VIEWABLE 이벤트 발생
1412
+ // 첫 번째 도트 활성화 (moveToSlide에서 자동으로 VIEWABLE 이벤트 발생)
1412
1413
  moveToSlide(0);
1413
- // 슬라이더 DOM 추가 후 첫 번째 광고 VIEWABLE 이벤트 트리거 (500ms 후 실제 노출 확인)
1414
- setTimeout(() => {
1415
- trackEventCallback(advertisements[0]._id, slot.id, AdEventType.VIEWABLE);
1416
- }, 500);
1417
1414
  // 사용자가 크기를 지정하지 않은 경우, 첫 번째 슬라이드 크기에 맞춰 래퍼 크기 동적 조정
1418
1415
  if (!slot.width || slot.width === 0) {
1419
1416
  // DOM 렌더링 후 크기 측정
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adstage/web-sdk",
3
- "version": "2.5.1",
3
+ "version": "2.5.3",
4
4
  "description": "AdStage Web SDK - Production-ready marketing platform SDK with React Provider support for seamless integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
@@ -218,6 +218,7 @@ export class CarouselSliderManager {
218
218
  }
219
219
 
220
220
  // 현재 슬라이드의 광고에 대해 노출 이벤트 추적 (모든 슬라이드 포함)
221
+ console.log(`🎯 Triggering VIEWABLE event for slide change: ad ${advertisements[actualIndex]._id} (index: ${actualIndex}) in slot: ${slot.id}`);
221
222
  trackEventCallback(advertisements[actualIndex]._id, slot.id, AdEventType.VIEWABLE);
222
223
  };
223
224
 
@@ -268,13 +269,8 @@ export class CarouselSliderManager {
268
269
  sliderWrapper.appendChild(dotContainer);
269
270
  }
270
271
 
271
- // 첫 번째 도트 활성화 초기 VIEWABLE 이벤트 발생
272
+ // 첫 번째 도트 활성화 (moveToSlide에서 자동으로 VIEWABLE 이벤트 발생)
272
273
  moveToSlide(0);
273
-
274
- // 슬라이더 DOM 추가 후 첫 번째 광고 VIEWABLE 이벤트 트리거 (500ms 후 실제 노출 확인)
275
- setTimeout(() => {
276
- trackEventCallback(advertisements[0]._id, slot.id, AdEventType.VIEWABLE);
277
- }, 500);
278
274
 
279
275
  // 사용자가 크기를 지정하지 않은 경우, 첫 번째 슬라이드 크기에 맞춰 래퍼 크기 동적 조정
280
276
  if (!slot.width || slot.width === 0) {