@adstage/web-sdk 2.3.2 → 2.3.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
@@ -1619,8 +1619,20 @@ class AdvertisementEventTracker {
1619
1619
  // 필수 필드들
1620
1620
  adType: slot?.adType || 'BANNER',
1621
1621
  platform: deviceInfo.platform,
1622
- // 디바이스 정보는 deviceInfo 객체로 래핑
1623
- deviceInfo: deviceInfo,
1622
+ // 디바이스 정보 - 스키마에 맞게 최상위 레벨로 추출
1623
+ deviceId: deviceInfo.deviceId,
1624
+ osVersion: deviceInfo.osVersion,
1625
+ deviceModel: deviceInfo.deviceModel,
1626
+ appVersion: deviceInfo.appVersion,
1627
+ sdkVersion: deviceInfo.sdkVersion,
1628
+ language: deviceInfo.language,
1629
+ country: deviceInfo.country,
1630
+ timezone: deviceInfo.timezone,
1631
+ viewportWidth: deviceInfo.viewportWidth,
1632
+ viewportHeight: deviceInfo.viewportHeight,
1633
+ screenWidth: deviceInfo.screenWidth,
1634
+ screenHeight: deviceInfo.screenHeight,
1635
+ connectionType: deviceInfo.connectionType,
1624
1636
  // 페이지 및 슬롯 정보
1625
1637
  pageUrl: DOMUtils.getPageInfo().url,
1626
1638
  pageTitle: DOMUtils.getPageInfo().title,
@@ -1629,7 +1641,6 @@ class AdvertisementEventTracker {
1629
1641
  slotPosition: DeviceInfoCollector.getSlotPosition(slot?.containerId || ''),
1630
1642
  slotWidth: AdvertisementEventTracker.parseNumericValue(slot?.width),
1631
1643
  slotHeight: AdvertisementEventTracker.parseNumericValue(slot?.height),
1632
- sessionId: deviceInfo.sessionId,
1633
1644
  // 성능 메트릭
1634
1645
  pageLoadTime: performance.now(),
1635
1646
  // 추가 메타데이터
package/dist/index.esm.js CHANGED
@@ -1617,8 +1617,20 @@ class AdvertisementEventTracker {
1617
1617
  // 필수 필드들
1618
1618
  adType: slot?.adType || 'BANNER',
1619
1619
  platform: deviceInfo.platform,
1620
- // 디바이스 정보는 deviceInfo 객체로 래핑
1621
- deviceInfo: deviceInfo,
1620
+ // 디바이스 정보 - 스키마에 맞게 최상위 레벨로 추출
1621
+ deviceId: deviceInfo.deviceId,
1622
+ osVersion: deviceInfo.osVersion,
1623
+ deviceModel: deviceInfo.deviceModel,
1624
+ appVersion: deviceInfo.appVersion,
1625
+ sdkVersion: deviceInfo.sdkVersion,
1626
+ language: deviceInfo.language,
1627
+ country: deviceInfo.country,
1628
+ timezone: deviceInfo.timezone,
1629
+ viewportWidth: deviceInfo.viewportWidth,
1630
+ viewportHeight: deviceInfo.viewportHeight,
1631
+ screenWidth: deviceInfo.screenWidth,
1632
+ screenHeight: deviceInfo.screenHeight,
1633
+ connectionType: deviceInfo.connectionType,
1622
1634
  // 페이지 및 슬롯 정보
1623
1635
  pageUrl: DOMUtils.getPageInfo().url,
1624
1636
  pageTitle: DOMUtils.getPageInfo().title,
@@ -1627,7 +1639,6 @@ class AdvertisementEventTracker {
1627
1639
  slotPosition: DeviceInfoCollector.getSlotPosition(slot?.containerId || ''),
1628
1640
  slotWidth: AdvertisementEventTracker.parseNumericValue(slot?.width),
1629
1641
  slotHeight: AdvertisementEventTracker.parseNumericValue(slot?.height),
1630
- sessionId: deviceInfo.sessionId,
1631
1642
  // 성능 메트릭
1632
1643
  pageLoadTime: performance.now(),
1633
1644
  // 추가 메타데이터
@@ -1614,8 +1614,20 @@ class AdvertisementEventTracker {
1614
1614
  // 필수 필드들
1615
1615
  adType: slot?.adType || 'BANNER',
1616
1616
  platform: deviceInfo.platform,
1617
- // 디바이스 정보는 deviceInfo 객체로 래핑
1618
- deviceInfo: deviceInfo,
1617
+ // 디바이스 정보 - 스키마에 맞게 최상위 레벨로 추출
1618
+ deviceId: deviceInfo.deviceId,
1619
+ osVersion: deviceInfo.osVersion,
1620
+ deviceModel: deviceInfo.deviceModel,
1621
+ appVersion: deviceInfo.appVersion,
1622
+ sdkVersion: deviceInfo.sdkVersion,
1623
+ language: deviceInfo.language,
1624
+ country: deviceInfo.country,
1625
+ timezone: deviceInfo.timezone,
1626
+ viewportWidth: deviceInfo.viewportWidth,
1627
+ viewportHeight: deviceInfo.viewportHeight,
1628
+ screenWidth: deviceInfo.screenWidth,
1629
+ screenHeight: deviceInfo.screenHeight,
1630
+ connectionType: deviceInfo.connectionType,
1619
1631
  // 페이지 및 슬롯 정보
1620
1632
  pageUrl: DOMUtils.getPageInfo().url,
1621
1633
  pageTitle: DOMUtils.getPageInfo().title,
@@ -1624,7 +1636,6 @@ class AdvertisementEventTracker {
1624
1636
  slotPosition: DeviceInfoCollector.getSlotPosition(slot?.containerId || ''),
1625
1637
  slotWidth: AdvertisementEventTracker.parseNumericValue(slot?.width),
1626
1638
  slotHeight: AdvertisementEventTracker.parseNumericValue(slot?.height),
1627
- sessionId: deviceInfo.sessionId,
1628
1639
  // 성능 메트릭
1629
1640
  pageLoadTime: performance.now(),
1630
1641
  // 추가 메타데이터
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adstage/web-sdk",
3
- "version": "2.3.2",
3
+ "version": "2.3.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",
@@ -65,8 +65,20 @@ export class AdvertisementEventTracker {
65
65
  adType: slot?.adType || 'BANNER',
66
66
  platform: deviceInfo.platform,
67
67
 
68
- // 디바이스 정보는 deviceInfo 객체로 래핑
69
- deviceInfo: deviceInfo,
68
+ // 디바이스 정보 - 스키마에 맞게 최상위 레벨로 추출
69
+ deviceId: deviceInfo.deviceId,
70
+ osVersion: deviceInfo.osVersion,
71
+ deviceModel: deviceInfo.deviceModel,
72
+ appVersion: deviceInfo.appVersion,
73
+ sdkVersion: deviceInfo.sdkVersion,
74
+ language: deviceInfo.language,
75
+ country: deviceInfo.country,
76
+ timezone: deviceInfo.timezone,
77
+ viewportWidth: deviceInfo.viewportWidth,
78
+ viewportHeight: deviceInfo.viewportHeight,
79
+ screenWidth: deviceInfo.screenWidth,
80
+ screenHeight: deviceInfo.screenHeight,
81
+ connectionType: deviceInfo.connectionType,
70
82
 
71
83
  // 페이지 및 슬롯 정보
72
84
  pageUrl: DOMUtils.getPageInfo().url,
@@ -76,7 +88,6 @@ export class AdvertisementEventTracker {
76
88
  slotPosition: DeviceInfoCollector.getSlotPosition(slot?.containerId || ''),
77
89
  slotWidth: AdvertisementEventTracker.parseNumericValue(slot?.width),
78
90
  slotHeight: AdvertisementEventTracker.parseNumericValue(slot?.height),
79
- sessionId: deviceInfo.sessionId,
80
91
 
81
92
  // 성능 메트릭
82
93
  pageLoadTime: performance.now(),