sales-frontend-utils 0.0.34 → 0.0.36
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 +53 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/index.js +51 -41
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -145,22 +145,6 @@ declare const getSubdomain: (hostname: string) => string;
|
|
|
145
145
|
* @returns 환경 구분 문자열 ('local' | 'dev' | 'stg' | 'prd')
|
|
146
146
|
*/
|
|
147
147
|
declare const getEnvironmentFromHostname: (hostname: string) => "local" | "dev" | "stg" | "prd";
|
|
148
|
-
/**
|
|
149
|
-
* 환경에 맞는 API 호스트명을 반환합니다.
|
|
150
|
-
* 호스트명을 강제하고 싶으면 두 번째 파라미터로 넘기세요.
|
|
151
|
-
* @param currentHostname
|
|
152
|
-
* @param forceApiHostName
|
|
153
|
-
* @returns
|
|
154
|
-
*/
|
|
155
|
-
declare const getApiHostNameFromEnvironment: (currentHostname: string, forceApiHostName?: string) => string;
|
|
156
|
-
/**
|
|
157
|
-
* 환경에 맞는 CDN 호스트명을 반환합니다.
|
|
158
|
-
* 호스트명을 강제하고 싶으면 두 번째 파라미터로 넘기세요.
|
|
159
|
-
* @param currentHostname
|
|
160
|
-
* @param forceApiHostName
|
|
161
|
-
* @returns
|
|
162
|
-
*/
|
|
163
|
-
declare const getCdnHostNameFromEnvironment: (currentHostname: string, forceApiHostName?: string) => string;
|
|
164
148
|
/**
|
|
165
149
|
* @see https://github.com/storybookjs/storybook/issues/32028#issuecomment-3298982086
|
|
166
150
|
* @note 스토리북에서 버그로인해 window객체를 정상적으로 탐지하지 못하는 이슈우회
|
|
@@ -197,7 +181,23 @@ declare const getBusinessWorkDivisionCode: () => string;
|
|
|
197
181
|
* @description storybook에서 동작을 고려하여 수정한 버전
|
|
198
182
|
* @returns
|
|
199
183
|
*/
|
|
200
|
-
declare const
|
|
184
|
+
declare const getServicePath: () => string;
|
|
185
|
+
/**
|
|
186
|
+
* 환경에 맞는 API 호스트명을 반환합니다.
|
|
187
|
+
* 호스트명을 강제하고 싶으면 두 번째 파라미터로 넘기세요.
|
|
188
|
+
* @param currentHostname
|
|
189
|
+
* @param forceApiHostName
|
|
190
|
+
* @returns
|
|
191
|
+
*/
|
|
192
|
+
declare const getApiHostNameFromEnvironment: (currentHostname: string, forceApiHostName?: string) => string;
|
|
193
|
+
/**
|
|
194
|
+
* 환경에 맞는 CDN 호스트명을 반환합니다.
|
|
195
|
+
* 호스트명을 강제하고 싶으면 두 번째 파라미터로 넘기세요.
|
|
196
|
+
* @param currentHostname
|
|
197
|
+
* @param forceApiHostName
|
|
198
|
+
* @returns
|
|
199
|
+
*/
|
|
200
|
+
declare const getCdnHostNameFromEnvironment: (currentHostname: string, forceApiHostName?: string) => string;
|
|
201
201
|
/**
|
|
202
202
|
* @description
|
|
203
203
|
* 환경에 맞는 비정형PI 호스트명을 반환합니다.
|
|
@@ -206,7 +206,7 @@ declare const getServiceCode: () => string;
|
|
|
206
206
|
* @param hostname window.location.hostname
|
|
207
207
|
* @returns
|
|
208
208
|
*/
|
|
209
|
-
declare const
|
|
209
|
+
declare const getDudApiBasePathFromEnvironment: (hostname?: string) => string;
|
|
210
210
|
/**
|
|
211
211
|
* @description
|
|
212
212
|
* 환경에 맞는 Dsp 호스트명을 반환합니다.
|
|
@@ -215,7 +215,7 @@ declare const getDudApiHostNameFromEnvironment: (hostname?: string) => string;
|
|
|
215
215
|
* @param hostname window.location.hostname
|
|
216
216
|
* @returns
|
|
217
217
|
*/
|
|
218
|
-
declare const
|
|
218
|
+
declare const getDspApiBasePathFromEnvironment: (serviceCodeTo: string, hostname?: string) => string;
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
221
|
* Message 이벤트 헨들러를 관리하는 클래스입니다. (싱글턴)
|
|
@@ -332,4 +332,4 @@ declare const initASTX2: ({ initSuccess, initFailure, checkServerSuccess, checkS
|
|
|
332
332
|
*/
|
|
333
333
|
declare function getE2EDataIDs(ids: string[], onSuccess: (astx_data: any) => void, onFailure?: () => void): void;
|
|
334
334
|
|
|
335
|
-
export { type BrowserName, type ExecutionEnvironment, MessageEventManager, type OSName, addE2EObject, base64ToBlob, base64ToFile, blobToFile, checkUserAgentDspApp, convertTextToImg, debounce, deleteCookie, downloadBlob, drawImageResizeCentered, fileToBase64, getApiHostNameFromEnvironment, getBrowserName, getBrowserVersion, getBusinessWorkDivisionCode, getCdnHostNameFromEnvironment, getCookie, getCurrentBrowserName, getCurrentBrowserVersion, getCurrentOSName, getCurrentOSVersion, getDeviceModel,
|
|
335
|
+
export { type BrowserName, type ExecutionEnvironment, MessageEventManager, type OSName, addE2EObject, base64ToBlob, base64ToFile, blobToFile, checkUserAgentDspApp, convertTextToImg, debounce, deleteCookie, downloadBlob, drawImageResizeCentered, fileToBase64, getApiHostNameFromEnvironment, getBrowserName, getBrowserVersion, getBusinessWorkDivisionCode, getCdnHostNameFromEnvironment, getCookie, getCurrentBrowserName, getCurrentBrowserVersion, getCurrentOSName, getCurrentOSVersion, getDeviceModel, getDspApiBasePathFromEnvironment, getDspExecutionEnvironment, getDudApiBasePathFromEnvironment, getE2EDataIDs, getEnvironmentFromHostname, getExt, getFormFactorFromUserAgent, getOSName, getOSVersion, getOrCreateDeviceId, getServicePath, getSubdomain, hasAstx2, imageUrlToFile, initASTX2, isClient, isDspApp, isFpPlannerApp, isPc, isPhone, isProductionApp, isSalesPortal, isStorybookEnv, isTablet, loadScript, objectUrlToBase64, objectUrlToBlob, setCookie, throttle };
|
package/dist/index.d.ts
CHANGED
|
@@ -145,22 +145,6 @@ declare const getSubdomain: (hostname: string) => string;
|
|
|
145
145
|
* @returns 환경 구분 문자열 ('local' | 'dev' | 'stg' | 'prd')
|
|
146
146
|
*/
|
|
147
147
|
declare const getEnvironmentFromHostname: (hostname: string) => "local" | "dev" | "stg" | "prd";
|
|
148
|
-
/**
|
|
149
|
-
* 환경에 맞는 API 호스트명을 반환합니다.
|
|
150
|
-
* 호스트명을 강제하고 싶으면 두 번째 파라미터로 넘기세요.
|
|
151
|
-
* @param currentHostname
|
|
152
|
-
* @param forceApiHostName
|
|
153
|
-
* @returns
|
|
154
|
-
*/
|
|
155
|
-
declare const getApiHostNameFromEnvironment: (currentHostname: string, forceApiHostName?: string) => string;
|
|
156
|
-
/**
|
|
157
|
-
* 환경에 맞는 CDN 호스트명을 반환합니다.
|
|
158
|
-
* 호스트명을 강제하고 싶으면 두 번째 파라미터로 넘기세요.
|
|
159
|
-
* @param currentHostname
|
|
160
|
-
* @param forceApiHostName
|
|
161
|
-
* @returns
|
|
162
|
-
*/
|
|
163
|
-
declare const getCdnHostNameFromEnvironment: (currentHostname: string, forceApiHostName?: string) => string;
|
|
164
148
|
/**
|
|
165
149
|
* @see https://github.com/storybookjs/storybook/issues/32028#issuecomment-3298982086
|
|
166
150
|
* @note 스토리북에서 버그로인해 window객체를 정상적으로 탐지하지 못하는 이슈우회
|
|
@@ -197,7 +181,23 @@ declare const getBusinessWorkDivisionCode: () => string;
|
|
|
197
181
|
* @description storybook에서 동작을 고려하여 수정한 버전
|
|
198
182
|
* @returns
|
|
199
183
|
*/
|
|
200
|
-
declare const
|
|
184
|
+
declare const getServicePath: () => string;
|
|
185
|
+
/**
|
|
186
|
+
* 환경에 맞는 API 호스트명을 반환합니다.
|
|
187
|
+
* 호스트명을 강제하고 싶으면 두 번째 파라미터로 넘기세요.
|
|
188
|
+
* @param currentHostname
|
|
189
|
+
* @param forceApiHostName
|
|
190
|
+
* @returns
|
|
191
|
+
*/
|
|
192
|
+
declare const getApiHostNameFromEnvironment: (currentHostname: string, forceApiHostName?: string) => string;
|
|
193
|
+
/**
|
|
194
|
+
* 환경에 맞는 CDN 호스트명을 반환합니다.
|
|
195
|
+
* 호스트명을 강제하고 싶으면 두 번째 파라미터로 넘기세요.
|
|
196
|
+
* @param currentHostname
|
|
197
|
+
* @param forceApiHostName
|
|
198
|
+
* @returns
|
|
199
|
+
*/
|
|
200
|
+
declare const getCdnHostNameFromEnvironment: (currentHostname: string, forceApiHostName?: string) => string;
|
|
201
201
|
/**
|
|
202
202
|
* @description
|
|
203
203
|
* 환경에 맞는 비정형PI 호스트명을 반환합니다.
|
|
@@ -206,7 +206,7 @@ declare const getServiceCode: () => string;
|
|
|
206
206
|
* @param hostname window.location.hostname
|
|
207
207
|
* @returns
|
|
208
208
|
*/
|
|
209
|
-
declare const
|
|
209
|
+
declare const getDudApiBasePathFromEnvironment: (hostname?: string) => string;
|
|
210
210
|
/**
|
|
211
211
|
* @description
|
|
212
212
|
* 환경에 맞는 Dsp 호스트명을 반환합니다.
|
|
@@ -215,7 +215,7 @@ declare const getDudApiHostNameFromEnvironment: (hostname?: string) => string;
|
|
|
215
215
|
* @param hostname window.location.hostname
|
|
216
216
|
* @returns
|
|
217
217
|
*/
|
|
218
|
-
declare const
|
|
218
|
+
declare const getDspApiBasePathFromEnvironment: (serviceCodeTo: string, hostname?: string) => string;
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
221
|
* Message 이벤트 헨들러를 관리하는 클래스입니다. (싱글턴)
|
|
@@ -332,4 +332,4 @@ declare const initASTX2: ({ initSuccess, initFailure, checkServerSuccess, checkS
|
|
|
332
332
|
*/
|
|
333
333
|
declare function getE2EDataIDs(ids: string[], onSuccess: (astx_data: any) => void, onFailure?: () => void): void;
|
|
334
334
|
|
|
335
|
-
export { type BrowserName, type ExecutionEnvironment, MessageEventManager, type OSName, addE2EObject, base64ToBlob, base64ToFile, blobToFile, checkUserAgentDspApp, convertTextToImg, debounce, deleteCookie, downloadBlob, drawImageResizeCentered, fileToBase64, getApiHostNameFromEnvironment, getBrowserName, getBrowserVersion, getBusinessWorkDivisionCode, getCdnHostNameFromEnvironment, getCookie, getCurrentBrowserName, getCurrentBrowserVersion, getCurrentOSName, getCurrentOSVersion, getDeviceModel,
|
|
335
|
+
export { type BrowserName, type ExecutionEnvironment, MessageEventManager, type OSName, addE2EObject, base64ToBlob, base64ToFile, blobToFile, checkUserAgentDspApp, convertTextToImg, debounce, deleteCookie, downloadBlob, drawImageResizeCentered, fileToBase64, getApiHostNameFromEnvironment, getBrowserName, getBrowserVersion, getBusinessWorkDivisionCode, getCdnHostNameFromEnvironment, getCookie, getCurrentBrowserName, getCurrentBrowserVersion, getCurrentOSName, getCurrentOSVersion, getDeviceModel, getDspApiBasePathFromEnvironment, getDspExecutionEnvironment, getDudApiBasePathFromEnvironment, getE2EDataIDs, getEnvironmentFromHostname, getExt, getFormFactorFromUserAgent, getOSName, getOSVersion, getOrCreateDeviceId, getServicePath, getSubdomain, hasAstx2, imageUrlToFile, initASTX2, isClient, isDspApp, isFpPlannerApp, isPc, isPhone, isProductionApp, isSalesPortal, isStorybookEnv, isTablet, loadScript, objectUrlToBase64, objectUrlToBlob, setCookie, throttle };
|