@adstage/web-sdk 3.0.11 → 3.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adstage/web-sdk",
3
- "version": "3.0.11",
3
+ "version": "3.0.12",
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",
@@ -27,10 +27,11 @@ export class EventDeviceCollector {
27
27
  model?: string;
28
28
  appVersion?: string;
29
29
  osVersion?: string;
30
+ deviceId?: string;
30
31
  } {
31
32
  // 자동 수집된 기본 정보 가져오기
32
33
  const autoDetectedInfo = EventDeviceCollector.getAutoDetectedDeviceInfo();
33
-
34
+
34
35
  // 사용자 제공 정보와 병합 (사용자 정보가 우선)
35
36
  return {
36
37
  ...autoDetectedInfo,
@@ -47,6 +48,7 @@ export class EventDeviceCollector {
47
48
  model?: string;
48
49
  appVersion?: string;
49
50
  osVersion?: string;
51
+ deviceId?: string;
50
52
  } {
51
53
  if (!DOMUtils.isBrowser()) {
52
54
  return {
@@ -59,7 +61,7 @@ export class EventDeviceCollector {
59
61
 
60
62
  const userAgent = navigator.userAgent.toLowerCase();
61
63
  let category: 'mobile' | 'desktop' | 'tablet' | 'other' = 'desktop';
62
-
64
+
63
65
  // 디바이스 카테고리 판별 (DeviceInfoCollector 재사용)
64
66
  if (/tablet|ipad/.test(userAgent)) {
65
67
  category = 'tablet';
@@ -75,7 +77,8 @@ export class EventDeviceCollector {
75
77
  category,
76
78
  platform: platformString,
77
79
  model: navigator.platform,
78
- osVersion: navigator.platform
80
+ osVersion: navigator.platform,
81
+ deviceId: DeviceInfoCollector.generateDeviceId(),
79
82
  };
80
83
  }
81
84