@adstage/web-sdk 3.0.4 → 3.0.6

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.4",
3
+ "version": "3.0.6",
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",
@@ -8,7 +8,7 @@
8
8
  */
9
9
  export const API_ENDPOINTS = {
10
10
  /** 프로덕션 환경 */
11
- production: 'https://api.adstage.io',
11
+ production: 'https://api.adstage.app',
12
12
 
13
13
  /** 베타 환경 (기본값) */
14
14
  beta: 'https://beta-api.adstage.app'
@@ -99,7 +99,7 @@ export class DeviceInfoCollector {
99
99
  sessionId: DeviceInfoCollector.generateSessionId(),
100
100
  osVersion: DOMUtils.isBrowser() ? navigator.platform : 'SSR',
101
101
  deviceModel: DOMUtils.isBrowser() ? navigator.platform : 'SSR',
102
- appVersion: ConfigUtils.getAppVersion(), // AdStage.init()에서 설정 또는 기본값 '1.0.0'
102
+ appVersion: '1.0.0', // 기본값 (사용자가 별도 설정 필요)
103
103
  sdkVersion: getSDKVersion(), // package.json에서 동적 로드
104
104
  language: DOMUtils.isBrowser() ? (navigator.language || 'ko') : 'ko',
105
105
  country: 'KR', // 기본값
@@ -27,8 +27,7 @@ export interface AdStageConfig {
27
27
  /** 플레이스홀더 스타일 모드 (기본값: 'subtle') */
28
28
  placeholderMode?: 'invisible' | 'transparent' | 'subtle' | 'minimal' | 'debug' | 'legacy';
29
29
 
30
- /** 고객 앱 버전 (선택사항, 기본값: '1.0.0') */
31
- appVersion?: string;
30
+
32
31
  }
33
32
 
34
33
  /**
@@ -19,13 +19,7 @@ export class ConfigUtils {
19
19
  }
20
20
  }
21
21
 
22
- /**
23
- * 고객 앱 버전 반환
24
- */
25
- static getAppVersion(): string {
26
- const config = ConfigUtils.getConfig();
27
- return config?.appVersion || '1.0.0';
28
- }
22
+
29
23
 
30
24
  /**
31
25
  * 디버그 모드 여부 확인