sales-frontend-utils 0.0.40 → 0.0.42

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.
Files changed (85) hide show
  1. package/dist/index.cjs +25 -2
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +11 -409
  4. package/dist/index.d.ts +11 -409
  5. package/dist/index.js +24 -3
  6. package/dist/index.js.map +1 -1
  7. package/dist/types/common.types.cjs +4 -0
  8. package/dist/types/common.types.cjs.map +1 -0
  9. package/dist/types/common.types.d.cts +11 -0
  10. package/dist/types/common.types.d.ts +11 -0
  11. package/dist/types/common.types.js +3 -0
  12. package/dist/types/common.types.js.map +1 -0
  13. package/dist/types/window.types.d.cjs +4 -0
  14. package/dist/types/window.types.d.cjs.map +1 -0
  15. package/dist/types/window.types.d.d.cts +6 -0
  16. package/dist/types/window.types.d.d.ts +6 -0
  17. package/dist/types/window.types.d.js +3 -0
  18. package/dist/types/window.types.d.js.map +1 -0
  19. package/dist/utils/age-utils.cjs +214 -0
  20. package/dist/utils/age-utils.cjs.map +1 -0
  21. package/dist/utils/age-utils.d.cts +63 -0
  22. package/dist/utils/age-utils.d.ts +63 -0
  23. package/dist/utils/age-utils.js +207 -0
  24. package/dist/utils/age-utils.js.map +1 -0
  25. package/dist/utils/astx2-utils.cjs +108 -0
  26. package/dist/utils/astx2-utils.cjs.map +1 -0
  27. package/dist/utils/astx2-utils.d.cts +28 -0
  28. package/dist/utils/astx2-utils.d.ts +28 -0
  29. package/dist/utils/astx2-utils.js +102 -0
  30. package/dist/utils/astx2-utils.js.map +1 -0
  31. package/dist/utils/canvas-utils.cjs +70 -0
  32. package/dist/utils/canvas-utils.cjs.map +1 -0
  33. package/dist/utils/canvas-utils.d.cts +30 -0
  34. package/dist/utils/canvas-utils.d.ts +30 -0
  35. package/dist/utils/canvas-utils.js +67 -0
  36. package/dist/utils/canvas-utils.js.map +1 -0
  37. package/dist/utils/cookie-utils.cjs +43 -0
  38. package/dist/utils/cookie-utils.cjs.map +1 -0
  39. package/dist/utils/cookie-utils.d.cts +13 -0
  40. package/dist/utils/cookie-utils.d.ts +13 -0
  41. package/dist/utils/cookie-utils.js +39 -0
  42. package/dist/utils/cookie-utils.js.map +1 -0
  43. package/dist/utils/date-utils.cjs +158 -0
  44. package/dist/utils/date-utils.cjs.map +1 -0
  45. package/dist/utils/date-utils.d.cts +100 -0
  46. package/dist/utils/date-utils.d.ts +100 -0
  47. package/dist/utils/date-utils.js +141 -0
  48. package/dist/utils/date-utils.js.map +1 -0
  49. package/dist/utils/environment-utils.cjs +187 -0
  50. package/dist/utils/environment-utils.cjs.map +1 -0
  51. package/dist/utils/environment-utils.d.cts +93 -0
  52. package/dist/utils/environment-utils.d.ts +93 -0
  53. package/dist/utils/environment-utils.js +175 -0
  54. package/dist/utils/environment-utils.js.map +1 -0
  55. package/dist/utils/event-handler-utils.cjs +53 -0
  56. package/dist/utils/event-handler-utils.cjs.map +1 -0
  57. package/dist/utils/event-handler-utils.d.cts +29 -0
  58. package/dist/utils/event-handler-utils.d.ts +29 -0
  59. package/dist/utils/event-handler-utils.js +51 -0
  60. package/dist/utils/event-handler-utils.js.map +1 -0
  61. package/dist/utils/file-utils.cjs +116 -0
  62. package/dist/utils/file-utils.cjs.map +1 -0
  63. package/dist/utils/file-utils.d.cts +20 -0
  64. package/dist/utils/file-utils.d.ts +20 -0
  65. package/dist/utils/file-utils.js +106 -0
  66. package/dist/utils/file-utils.js.map +1 -0
  67. package/dist/utils/formatting.cjs +41 -0
  68. package/dist/utils/formatting.cjs.map +1 -0
  69. package/dist/utils/formatting.d.cts +7 -0
  70. package/dist/utils/formatting.d.ts +7 -0
  71. package/dist/utils/formatting.js +35 -0
  72. package/dist/utils/formatting.js.map +1 -0
  73. package/dist/utils/timing-utils.cjs +40 -0
  74. package/dist/utils/timing-utils.cjs.map +1 -0
  75. package/dist/utils/timing-utils.d.cts +16 -0
  76. package/dist/utils/timing-utils.d.ts +16 -0
  77. package/dist/utils/timing-utils.js +37 -0
  78. package/dist/utils/timing-utils.js.map +1 -0
  79. package/dist/utils/user-agent-utils.cjs +328 -0
  80. package/dist/utils/user-agent-utils.cjs.map +1 -0
  81. package/dist/utils/user-agent-utils.d.cts +113 -0
  82. package/dist/utils/user-agent-utils.d.ts +113 -0
  83. package/dist/utils/user-agent-utils.js +307 -0
  84. package/dist/utils/user-agent-utils.js.map +1 -0
  85. package/package.json +113 -3
package/dist/index.d.cts CHANGED
@@ -1,409 +1,11 @@
1
- import dayjs from 'dayjs';
2
-
3
- /**
4
- * 쓰로틀
5
- * @param func
6
- * @param delay
7
- * @returns
8
- */
9
- declare function throttle<T extends (...args: any[]) => void>(func: T, delay: number): (...args: Parameters<T>) => void;
10
- /**
11
- * 디바운스
12
- * @param func
13
- * @param delay
14
- * @returns
15
- */
16
- declare function debounce<T extends (...args: any[]) => void>(func: T, delay: number): (...args: Parameters<T>) => void;
17
-
18
- type ExecutionEnvironment = 'web' | 'android-webview' | 'ios-webview' | 'iframe' | 'unknown';
19
- /**
20
- * 운영체제 이름을 판단하는 타입
21
- */
22
- type OSName = 'windows' | 'mac' | 'linux' | 'android' | 'ios' | 'unknown';
23
- /**
24
- * 브라우저 이름을 판단하는 타입
25
- */
26
- type BrowserName = 'chrome' | 'firefox' | 'safari' | 'edge' | 'opera' | 'samsung' | 'unknown';
27
-
28
- /**
29
- * 한화생명 영업지원 웹 실행 환경 탐지
30
- * @returns
31
- */
32
- declare const getDspExecutionEnvironment: () => ExecutionEnvironment;
33
- /**
34
- * 한화생명 영업 앱 환경 여부 판단(DSP 앱 또는 FP 플래너 앱)
35
- * 운영 중인 프로덕션 앱에서 실행 중인지 확인
36
- * @returns
37
- */
38
- declare const isProductionApp: () => boolean;
39
- /**
40
- * UserAgent에 SspApp 이 있는지 검사
41
- * 있으면, DSP 앱
42
- * @param userAgent
43
- * @returns
44
- */
45
- declare const checkUserAgentDspApp: (userAgent: string) => boolean;
46
- /**
47
- * 한화생명 영업지원 웹뷰 환경 여부 판단
48
- * @returns 웹뷰(Android/iOS) 환경이면 true, 아니면 false
49
- */
50
- declare const isDspApp: () => boolean;
51
- /**
52
- * FP 플래너 웹뷰 환경 여부 판단
53
- * @returns
54
- */
55
- declare const isFpPlannerApp: () => boolean;
56
- /**
57
- * 영업 포털 환경 여부 판단
58
- * @returns
59
- */
60
- declare const isSalesPortal: () => boolean;
61
- /**
62
- * 태블릿 여부 판단
63
- * @param userAgent
64
- * @returns
65
- */
66
- declare const isTablet: (userAgent: string) => boolean;
67
- /**
68
- * 스마트폰 여부 판단
69
- * @param userAgent
70
- * @returns
71
- */
72
- declare const isPhone: (userAgent: string) => boolean;
73
- /**
74
- * 데스크톱 여부 판단
75
- * @param userAgent
76
- * @returns
77
- */
78
- declare const isPc: (userAgent: string) => boolean;
79
- /**
80
- * UserAgent에서 기기 타입 구분
81
- * @param userAgent
82
- * @returns
83
- */
84
- declare const getFormFactorFromUserAgent: (userAgent: string) => "tablet" | "pc" | "phone";
85
- /**
86
- * UserAgent에서 운영체제 이름을 추출
87
- * @param userAgent - 브라우저의 userAgent 문자열
88
- * @returns 운영체제 이름
89
- */
90
- declare const getOSName: (userAgent: string) => OSName;
91
- /**
92
- * 현재 브라우저의 운영체제 이름을 가져오기
93
- * @returns 현재 환경의 운영체제 이름
94
- */
95
- declare const getCurrentOSName: () => OSName;
96
- /**
97
- * UserAgent에서 OS 버전을 추출
98
- * @param userAgent - 브라우저의 userAgent 문자열
99
- * @returns OS 버전 문자열
100
- */
101
- declare const getOSVersion: (userAgent: string) => string;
102
- /**
103
- * UserAgent에서 브라우저 이름을 추출
104
- * @param userAgent - 브라우저의 userAgent 문자열
105
- * @returns 브라우저 이름
106
- */
107
- declare const getBrowserName: (userAgent: string) => BrowserName;
108
- /**
109
- * UserAgent에서 브라우저 버전을 추출
110
- * @param userAgent - 브라우저의 userAgent 문자열
111
- * @returns 브라우저 버전
112
- */
113
- declare const getBrowserVersion: (userAgent: string) => string;
114
- /**
115
- * 현재 브라우저의 OS 버전을 가져오기
116
- * @returns 현재 환경의 OS 버전
117
- */
118
- declare const getCurrentOSVersion: () => string;
119
- /**
120
- * 현재 브라우저의 이름을 가져오기
121
- * @returns 현재 환경의 브라우저 이름
122
- */
123
- declare const getCurrentBrowserName: () => BrowserName;
124
- /**
125
- * 현재 브라우저의 버전을 가져오기
126
- * @returns 현재 환경의 브라우저 버전
127
- */
128
- declare const getCurrentBrowserVersion: () => string;
129
- /**
130
- * 클라이언트용 디바이스 ID 생성 및 관리(임시값)
131
- */
132
- declare const getOrCreateDeviceId: () => string;
133
- /**
134
- * 디바이스 모델 감지
135
- */
136
- declare const getDeviceModel: () => string;
137
-
138
- /**
139
- * 호스트명에서 서브도메인을 추출합니다.
140
- * @param hostname 호스트명
141
- * @returns 서브도메인 (예: nxl-dsp-dev)
142
- */
143
- declare const getSubdomain: (hostname: string) => string;
144
- /**
145
- * 호스트명을 기반으로 환경을 판단합니다.
146
- * @param hostname 호스트명
147
- * @returns 환경 구분 문자열 ('local' | 'dev' | 'stg' | 'prd')
148
- */
149
- declare const getEnvironmentFromHostname: (hostname: string) => "local" | "dev" | "stg" | "prd";
150
- /**
151
- * @see https://github.com/storybookjs/storybook/issues/32028#issuecomment-3298982086
152
- * @note 스토리북에서 버그로인해 window객체를 정상적으로 탐지하지 못하는 이슈우회
153
- */
154
- declare const isClient: () => boolean;
155
- /**
156
- * 현재 실행 환경이 Storybook인지 확인하는 함수
157
- *
158
- * 사용 전, `viteFinal` 설정에서 `window.isStorybookEnv`를 `true`로 정의해야 정상 동작합니다.
159
- *
160
- * 예시:
161
- * ```ts
162
- * const config: StorybookConfig = {
163
- * viteFinal: (config) => {
164
- * // window.isStorybookEnv를 true로 설정 (boolean 값으로 처리됨)
165
- * config.define = {
166
- * ...config.define,
167
- * 'window.isStorybookEnv': 'true',
168
- * };
169
- *
170
- * return config;
171
- * },
172
- * };
173
- * ```
174
- */
175
- declare const isStorybookEnv: () => boolean;
176
- /**
177
- * 현재 업무구분 코드 구하기
178
- * 원칙: pathname의 첫 번째가 업무구분코드를 사용할 경우 해당 값을 반환
179
- * @returns
180
- */
181
- declare const getBusinessWorkDivisionCode: () => string;
182
- /**
183
- * @description storybook에서 동작을 고려하여 수정한 버전
184
- * @returns
185
- */
186
- declare const getServicePath: () => string;
187
- /**
188
- * 환경에 맞는 API 호스트명을 반환합니다.
189
- * 호스트명을 강제하고 싶으면 두 번째 파라미터로 넘기세요.
190
- * @param currentHostname
191
- * @param forceApiHostName
192
- * @returns
193
- */
194
- declare const getApiHostNameFromEnvironment: (currentHostname: string, forceApiHostName?: string) => string;
195
- /**
196
- * 환경에 맞는 CDN 호스트명을 반환합니다.
197
- * 호스트명을 강제하고 싶으면 두 번째 파라미터로 넘기세요.
198
- * @param currentHostname
199
- * @param forceApiHostName
200
- * @returns
201
- */
202
- declare const getCdnHostNameFromEnvironment: (currentHostname: string, forceApiHostName?: string) => string;
203
- /**
204
- * @description
205
- * 환경에 맞는 비정형PI 호스트명을 반환합니다.
206
- * client side에서 사용하는 함수입니다.
207
- * @param serviceCode dea,dis,dcm
208
- * @param hostname window.location.hostname
209
- * @returns
210
- */
211
- declare const getDudApiBasePathFromEnvironment: (hostname?: string) => string;
212
- /**
213
- * @description
214
- * 환경에 맞는 Dsp 호스트명을 반환합니다.
215
- * client side에서 사용하는 함수입니다.
216
- * @param serviceCodeTo dea,dis 같은 api서버명
217
- * @param hostname window.location.hostname
218
- * @returns
219
- */
220
- declare const getDspApiBasePathFromEnvironment: (serviceCodeTo: string, hostname?: string) => string;
221
- /**
222
- * @description
223
- * 환경에 맞는 NLC 호스트명을 반환합니다.
224
- * client side에서 사용하는 함수입니다.
225
- * @param hostname window.location.hostname
226
- * @returns
227
- */
228
- declare const getNlcHostFromEnvironment: (hostname?: string) => "" | "https://nxl-nlc-stg.hanwhalife.com" | "https://nxl-nlc-dev.hanwhalife.com" | "https://nxl-nlc.hanwhalife.com";
229
-
230
- /**
231
- * Message 이벤트 헨들러를 관리하는 클래스입니다. (싱글턴)
232
- * 모든 message 핸들러는 여기를 통해 등록해야합니다.
233
- * window.addEventListener('message') 의 중복을 방지하기 위함입니다.
234
- */
235
- declare class MessageEventManager {
236
- private static instance;
237
- private handlers;
238
- static getInstance(): MessageEventManager;
239
- private constructor();
240
- /**
241
- *
242
- * @param event
243
- */
244
- private handleMessage;
245
- /**
246
- * 이벤트 헨들러 함수를 등록합니다.
247
- * @param key
248
- * @param handler
249
- */
250
- registerHandler(key: string, handler: (event: MessageEvent) => void): void;
251
- /**
252
- * 이벤트 핸들러 함수를 삭제합니다.
253
- * @param key
254
- */
255
- unregisterHandler(key: string): void;
256
- }
257
-
258
- interface ConvertTextToImgParams {
259
- /** 이미지로 변환할 문자열 */
260
- targetStr: string;
261
- /** 캔버스 너비 (지정하지 않으면 텍스트 길이에 따라 자동 계산) */
262
- canvasWidth?: number;
263
- /** 캔버스 높이 (지정하지 않으면 기본값 150px) */
264
- canvasHeight?: number;
265
- /** 배경색 (지정하지 않으면 투명) */
266
- backgroundColor?: string;
267
- /** 폰트 크기 (지정하지 않으면 기본값 75px) */
268
- fontSize?: number;
269
- /** 폰트 색상 (지정하지 않으면 기본값 검정색) */
270
- fontColor?: string;
271
- /** 폰트 두께 (지정하지 않으면 기본값 bold) */
272
- fontWeight?: string;
273
- /** 폰트 패밀리 (지정하지 않으면 기본값 ) */
274
- fontFamily?: string;
275
- }
276
- /**
277
- * 텍스트를 이미지(Base64)로 변환하는 함수
278
- * @param params - 변환에 필요한 파라미터 객체
279
- * @returns Base64로 인코딩된 이미지 데이터 URL
280
- */
281
- declare const convertTextToImg: ({ targetStr, canvasWidth, canvasHeight, backgroundColor, fontColor, fontSize, fontWeight, fontFamily }: ConvertTextToImgParams) => string;
282
- declare function drawImageResizeCentered(base64: string, size: {
283
- canvasWidth: number;
284
- canvasHeight: number;
285
- }): Promise<unknown>;
286
-
287
- declare const getCookie: (name: string) => string;
288
- declare const setCookie: (name: string, value: string, options?: {
289
- expires?: number | Date;
290
- path?: string;
291
- domain?: string;
292
- secure?: boolean;
293
- }) => void;
294
- declare const deleteCookie: (name: string, options?: {
295
- path?: string;
296
- domain?: string;
297
- }) => void;
298
-
299
- declare function base64ToBlob(base64String: string, contentType?: string): Blob;
300
- declare function base64ToFile(base64String: string, fileName: string, contentType?: string): File;
301
- declare function blobToFile(blob: Blob, fileName: string): File;
302
- declare function fileToBase64(file: File | Blob): Promise<string>;
303
- /**
304
- * 파일확장자 리턴
305
- * @param data string File Blob
306
- */
307
- declare function getExt(data: string | File | Blob): string | undefined;
308
- declare function objectUrlToBlob(objectUrl: string): Promise<Blob>;
309
- declare function objectUrlToBase64(objectUrl: string): Promise<string>;
310
- declare function downloadBlob(blob: Blob, filename: string): void;
311
- /**
312
- * image url을 File Object로 변경.
313
- * @param imageUrl fileObject로 변경할 image url
314
- * @return file object
315
- */
316
- declare function imageUrlToFile(imageUrl: string): Promise<File>;
317
-
318
- /**
319
- * element를 동적으로 추가하는 경우 사용.
320
- * @param el HTMLElement
321
- * @param e2e_type string
322
- */
323
- declare function addE2EObject(el: HTMLElement, e2e_type?: string): void;
324
- declare function hasAstx2(): boolean;
325
- interface Astx2Init {
326
- initSuccess?: () => void;
327
- initFailure?: () => void;
328
- checkServerSuccess?: () => void;
329
- checkServerFailure?: () => void;
330
- }
331
- declare const loadScript: (callback?: () => void) => void;
332
- /**
333
- * @description 페이지진입후 최초 실행
334
- */
335
- declare const initASTX2: ({ initSuccess, initFailure, checkServerSuccess, checkServerFailure }?: Astx2Init) => void;
336
- /**
337
- * form객체로 감싸진 html input이 아닌 개별 input을 컨트롤
338
- * id기반으로 데이터접근
339
- * @param ids string[]
340
- * @param onSuccess
341
- * @param onFailure
342
- */
343
- declare function getE2EDataIDs(ids: string[], onSuccess: (astx_data: any) => void, onFailure?: () => void): void;
344
-
345
- /**
346
- *
347
- * @param year
348
- * @param month
349
- * @returns
350
- */
351
- declare function getLastDay(year: number, month: number): 29 | 28 | 30 | 31;
352
- /**
353
- * 한달뒤 날짜를 포맷형태로 리턴
354
- * @param 20200101 or 2020.01.01
355
- * @param 'YYYY.MM.DD'
356
- * @returns
357
- */
358
- declare const getOneMonthLater: (value?: string, format?: string) => string;
359
- /**
360
- * 날짜 차이를 구한다. 포맷에 맞지 않으면 Not a Number 리턴
361
- * @param date1 (yyyymmdd or yyyy.mm.dd or yyyy-mm-dd)
362
- * @param date2 (yyyymmdd or yyyy.mm.dd or yyyy-mm-dd)
363
- * @returns date1 - date2
364
- */
365
- declare const getDateDiff: (date1: string | number | dayjs.Dayjs | Date, date2: string | number | dayjs.Dayjs | Date) => number;
366
- /**
367
- * 입력되어진 생년월일 값이 당일 기준으로 미래시점인 경우 false를 반환합니다. (회원체계 기준 9, 0 일 경우 오류)
368
- * @param front 주민등록번호 앞 6자리
369
- * @param back 주민등록번호 뒤 첫자리
370
- * @returns boolean
371
- */
372
- declare const validateBirthdate: (front: string, back: string) => boolean;
373
- /**
374
- * 목표 날짜가 비교 날짜 이후 인지 확인하는 함수 (YYYYMMDD 형식)
375
- * @param targetDate
376
- * @param compareDate
377
- * @returns boolean
378
- */
379
- declare function isDateAfter(targetDate: string | number | dayjs.Dayjs | Date, compareDate: string | number | dayjs.Dayjs | Date): boolean;
380
- /**
381
- * 날짜를 포맷형태로 리턴
382
- * @param 20200101 string
383
- * @param 'YYYY.MM.DD
384
- * @returns 포맷화된 날짜
385
- */
386
- declare const convertDateFormat: (value?: string | number | dayjs.Dayjs | Date, format?: string) => string;
387
- /**
388
- * 주어진 날짜가 오늘 날짜 이후인지 확인합니다.
389
- *
390
- * @param {string} dateString - 확인할 날짜 문자열입니다.
391
- * @param {dayjs.OptionType} [format] - 날짜 문자열의 형식입니다.
392
- * @returns {boolean} - 주어진 날짜가 오늘 이후라면 true를 반환합니다.
393
- */
394
- declare const isFutureDate: (dateString?: string | number | dayjs.Dayjs | Date, format?: dayjs.OptionType) => boolean;
395
- /**
396
- * 날짜 유효성 검사
397
- *
398
- * @param {string} dateString - 검사할 날짜 문자열.
399
- * @param {dayjs.OptionType} [format] - 날짜 문자열의 형식입니다.
400
- * @returns {boolean} - 유효한 날짜이면 true를 반환하고, 그렇지 않으면 false를 반환합니다.
401
- */
402
- declare const isValidDate: (dateString?: string | number | dayjs.Dayjs | Date, format?: dayjs.OptionType) => boolean;
403
- type PeriodType = 'thisWeek' | 'lastWeek' | 'last7Days' | 'thisMonth' | 'lastMonth' | 'last365Days';
404
- declare const getPeriodDate: (periodType: PeriodType) => {
405
- startDate: Date;
406
- endDate: Date;
407
- };
408
-
409
- export { type BrowserName, type ExecutionEnvironment, MessageEventManager, type OSName, type PeriodType, addE2EObject, base64ToBlob, base64ToFile, blobToFile, checkUserAgentDspApp, convertDateFormat, convertTextToImg, debounce, deleteCookie, downloadBlob, drawImageResizeCentered, fileToBase64, getApiHostNameFromEnvironment, getBrowserName, getBrowserVersion, getBusinessWorkDivisionCode, getCdnHostNameFromEnvironment, getCookie, getCurrentBrowserName, getCurrentBrowserVersion, getCurrentOSName, getCurrentOSVersion, getDateDiff, getDeviceModel, getDspApiBasePathFromEnvironment, getDspExecutionEnvironment, getDudApiBasePathFromEnvironment, getE2EDataIDs, getEnvironmentFromHostname, getExt, getFormFactorFromUserAgent, getLastDay, getNlcHostFromEnvironment, getOSName, getOSVersion, getOneMonthLater, getOrCreateDeviceId, getPeriodDate, getServicePath, getSubdomain, hasAstx2, imageUrlToFile, initASTX2, isClient, isDateAfter, isDspApp, isFpPlannerApp, isFutureDate, isPc, isPhone, isProductionApp, isSalesPortal, isStorybookEnv, isTablet, isValidDate, loadScript, objectUrlToBase64, objectUrlToBlob, setCookie, throttle, validateBirthdate };
1
+ export { debounce, throttle } from './utils/timing-utils.cjs';
2
+ export { checkUserAgentDspApp, getBrowserName, getBrowserVersion, getCurrentBrowserName, getCurrentBrowserVersion, getCurrentOSName, getCurrentOSVersion, getDeviceModel, getDspExecutionEnvironment, getFormFactorFromUserAgent, getOSName, getOSVersion, getOrCreateDeviceId, isDspApp, isFpPlannerApp, isPc, isPhone, isProductionApp, isSalesPortal, isTablet } from './utils/user-agent-utils.cjs';
3
+ export { getApiHostNameFromEnvironment, getBusinessWorkDivisionCode, getCdnHostNameFromEnvironment, getDspApiBasePathFromEnvironment, getDudApiBasePathFromEnvironment, getEnvironmentFromHostname, getNlcHostFromEnvironment, getServicePath, getSubdomain, isClient, isStorybookEnv } from './utils/environment-utils.cjs';
4
+ export { MessageEventManager } from './utils/event-handler-utils.cjs';
5
+ export { convertTextToImg, drawImageResizeCentered } from './utils/canvas-utils.cjs';
6
+ export { deleteCookie, getCookie, setCookie } from './utils/cookie-utils.cjs';
7
+ export { base64ToBlob, base64ToFile, blobToFile, downloadBlob, fileToBase64, getExt, imageUrlToFile, objectUrlToBase64, objectUrlToBlob } from './utils/file-utils.cjs';
8
+ export { addE2EObject, getE2EDataIDs, hasAstx2, initASTX2, loadScript } from './utils/astx2-utils.cjs';
9
+ export { DateFormat, PeriodType, convertDateFormat, convertDateString, getDateDiff, getLastDay, getOneMonthLater, getPeriodDate, isDate, isDateAfter, isFutureDate, isValidDate, validateBirthdate } from './utils/date-utils.cjs';
10
+ export { BrowserName, ExecutionEnvironment, OSName } from './types/common.types.cjs';
11
+ import 'dayjs';