chayns-api 2.2.9 → 2.2.10

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.
@@ -26,7 +26,7 @@ const withCompatMode = Component => {
26
26
  ref: innerRef
27
27
  })));
28
28
  if (typeof _client.createRoot === 'function') {
29
- const identifierPrefix = Math.floor(Math.random() * 2 ** 64).toString(16);
29
+ const identifierPrefix = Array(8).fill(0).map(() => Math.floor(Math.random() * 256).toString(16).padStart(2, '0')).join('');
30
30
  this.root = (0, _client.createRoot)(this.ref.current, {
31
31
  identifierPrefix
32
32
  });
@@ -17,7 +17,7 @@ export const withCompatMode = Component => {
17
17
  ref: innerRef
18
18
  })));
19
19
  if (typeof createRoot === 'function') {
20
- const identifierPrefix = Math.floor(Math.random() * 2 ** 64).toString(16);
20
+ const identifierPrefix = Array(8).fill(0).map(() => Math.floor(Math.random() * 256).toString(16).padStart(2, '0')).join('');
21
21
  this.root = createRoot(this.ref.current, {
22
22
  identifierPrefix
23
23
  });
@@ -3,193 +3,185 @@ import { ChaynsApiDevice, ChaynsApiSite, ChaynsReactFunctions, UserInfo } from '
3
3
  * This adds a listener to determine your location.
4
4
  * @category Event listener
5
5
  */
6
- export declare const addGeoLocationListener: (value: {
7
- timeout?: number;
8
- silent?: boolean;
9
- }, callback: (geoLocation: import("../types/IChaynsReact").GeoLocation) => void) => Promise<number>;
6
+ export declare const addGeoLocationListener: (...args: Parameters<ChaynsReactFunctions["addGeoLocationListener"]>) => Promise<number>;
10
7
  /**
11
8
  * Adds a listener for scroll event by user.
12
9
  * @category Event listener
13
10
  */
14
- export declare const addScrollListener: (value: {
15
- throttle?: number;
16
- }, callback: (result: import("../types/IChaynsReact").ScrollListenerResult) => void) => Promise<number>;
11
+ export declare const addScrollListener: (...args: Parameters<ChaynsReactFunctions["addScrollListener"]>) => Promise<number>;
17
12
  /**
18
13
  * This method will be executed when the page gets displayed or hidden.
19
14
  * @category Event listener
20
15
  */
21
- export declare const addVisibilityChangeListener: (callback: (result: import("../types/IChaynsReact").VisibilityChangeListenerResult) => void) => Promise<number>;
16
+ export declare const addVisibilityChangeListener: (...args: Parameters<ChaynsReactFunctions["addVisibilityChangeListener"]>) => Promise<number>;
22
17
  /**
23
18
  * This method will be executed when the toolbar gets displayed or hidden.
24
19
  * @category Event listener
25
20
  */
26
- export declare const addToolbarChangeListener: (callback: (result: import("../types/IChaynsReact").ToolbarChangeListenerResult) => void) => Promise<number>;
21
+ export declare const addToolbarChangeListener: (...args: Parameters<ChaynsReactFunctions["addToolbarChangeListener"]>) => Promise<number>;
27
22
  /**
28
23
  * This adds a listener to get the actual height of the page.
29
24
  * @category Event listener
30
25
  */
31
- export declare const addWindowMetricsListener: (callback: (result: import("../types/IChaynsReact").WindowMetricsListenerResult) => void) => Promise<number>; /**
26
+ export declare const addWindowMetricsListener: (...args: Parameters<ChaynsReactFunctions["addWindowMetricsListener"]>) => Promise<number>; /**
32
27
  * Allows a custom callback function to be defined. Prefer usage via useCustomCallbackFunction when possible
33
28
  * @deprecated Use customFunction/useCustomFunction-interface instead if possible
34
29
  */
35
- export declare const customCallbackFunction: (type: string, data: unknown) => Promise<unknown>;
30
+ export declare const customCallbackFunction: (...args: Parameters<ChaynsReactFunctions["customCallbackFunction"]>) => Promise<unknown>;
36
31
  /**
37
32
  * Get the accessToken from the user.
38
33
  */
39
- export declare const getAccessToken: (value?: import("../types/IChaynsReact").AccessToken | undefined) => Promise<import("../types/IChaynsReact").AccessTokenResult>;
34
+ export declare const getAccessToken: (...args: Parameters<ChaynsReactFunctions["getAccessToken"]>) => Promise<import("../types/IChaynsReact").AccessTokenResult>;
40
35
  /**
41
36
  * This method returns a list of installed share/social media apps.
42
37
  */
43
- export declare const getAvailableSharingServices: () => Promise<import("../types/IChaynsReact").AvailableSharingServices>;
38
+ export declare const getAvailableSharingServices: (...args: Parameters<ChaynsReactFunctions["getAvailableSharingServices"]>) => Promise<import("../types/IChaynsReact").AvailableSharingServices>;
44
39
  /**
45
40
  * This method determines your location. If you want to track a route, use addGeoLocationListener.
46
41
  */
47
- export declare const getGeoLocation: (value: {
48
- timeout?: number;
49
- silent?: boolean;
50
- }) => Promise<import("../types/IChaynsReact").GeoLocation>;
42
+ export declare const getGeoLocation: (...args: Parameters<ChaynsReactFunctions["getGeoLocation"]>) => Promise<import("../types/IChaynsReact").GeoLocation>;
51
43
  /**
52
44
  * This method returns user information for a specific user.
53
45
  * @category User functions
54
46
  */
55
- export declare const getUserInfo: (value: import("../types/IChaynsReact").UserInfoQuery) => Promise<UserInfo | null>;
47
+ export declare const getUserInfo: (...args: Parameters<ChaynsReactFunctions["getUserInfo"]>) => Promise<UserInfo | null>;
56
48
  /**
57
49
  * Return the current scroll position of the top frame
58
50
  */
59
- export declare const getScrollPosition: () => Promise<import("../types/IChaynsReact").ScrollListenerResult>;
51
+ export declare const getScrollPosition: (...args: Parameters<ChaynsReactFunctions["getScrollPosition"]>) => Promise<import("../types/IChaynsReact").ScrollListenerResult>;
60
52
  /**
61
53
  * Returns the window metrics.
62
54
  */
63
- export declare const getWindowMetrics: () => Promise<import("../types/IChaynsReact").WindowMetricsListenerResult>;
55
+ export declare const getWindowMetrics: (...args: Parameters<ChaynsReactFunctions["getWindowMetrics"]>) => Promise<import("../types/IChaynsReact").WindowMetricsListenerResult>;
64
56
  /** @internal */
65
- export declare const invokeCall: (value: import("../types/IChaynsReact").InvokeCall, callback?: ((result: any) => void) | undefined) => Promise<any>;
57
+ export declare const invokeCall: (...args: Parameters<ChaynsReactFunctions["invokeCall"]>) => Promise<any>;
66
58
  /** @internal */
67
- export declare const invokeDialogCall: (value: import("../types/IChaynsReact").InvokeCall, callback?: ((result: any) => void) | undefined) => Promise<any>;
59
+ export declare const invokeDialogCall: (...args: Parameters<ChaynsReactFunctions["invokeDialogCall"]>) => Promise<any>;
68
60
  /**
69
61
  * This method will show a login dialog where the user has the opportunity to log in.
70
62
  */
71
- export declare const login: (value?: import("../types/IChaynsReact").Login | undefined, callback?: ((result: boolean) => void) | undefined, closeCallback?: (() => void) | undefined) => Promise<import("../types/IChaynsReact").LoginResult>;
63
+ export declare const login: (...args: Parameters<ChaynsReactFunctions["login"]>) => Promise<import("../types/IChaynsReact").LoginResult>;
72
64
  /**
73
65
  * This method will logout the user
74
66
  */
75
- export declare const logout: () => Promise<void>;
67
+ export declare const logout: (...args: Parameters<ChaynsReactFunctions["logout"]>) => Promise<void>;
76
68
  /**
77
69
  * This function navigates you to the previous site.
78
70
  */
79
- export declare const navigateBack: () => Promise<void>;
71
+ export declare const navigateBack: (...args: Parameters<ChaynsReactFunctions["navigateBack"]>) => Promise<void>;
80
72
  /**
81
73
  * The images specified in the url array is shown in gallery mode.
82
74
  */
83
- export declare const openImage: (value: import("../types/IChaynsReact").OpenImage) => Promise<void>;
75
+ export declare const openImage: (...args: Parameters<ChaynsReactFunctions["openImage"]>) => Promise<void>;
84
76
  /**
85
77
  * The images and videos specified in the items array is shown in gallery mode.
86
78
  */
87
- export declare const openMedia: (value: import("../types/IChaynsReact").OpenMedia) => Promise<void>;
79
+ export declare const openMedia: (...args: Parameters<ChaynsReactFunctions["openMedia"]>) => Promise<void>;
88
80
  /**
89
81
  * Opens an URL in the chayns environment.
90
82
  */
91
- export declare const openUrl: (value: import("../types/IChaynsReact").OpenUrl) => Promise<void>;
83
+ export declare const openUrl: (...args: Parameters<ChaynsReactFunctions["openUrl"]>) => Promise<void>;
92
84
  /**
93
85
  * The video specified in the URL is shown in video mode.
94
86
  */
95
- export declare const openVideo: (value: import("../types/IChaynsReact").OpenVideo) => Promise<void>;
87
+ export declare const openVideo: (...args: Parameters<ChaynsReactFunctions["openVideo"]>) => Promise<void>;
96
88
  /**
97
89
  * Refresh badge count in navigation, user information and pages
98
90
  */
99
- export declare const refreshData: (value: import("../types/IChaynsReact").RefreshData) => Promise<void>;
91
+ export declare const refreshData: (...args: Parameters<ChaynsReactFunctions["refreshData"]>) => Promise<void>;
100
92
  /**
101
93
  * Refresh accesstoken, should only be used when user object changes, not when token is invalid
102
94
  */
103
- export declare const refreshAccessToken: () => Promise<void>;
95
+ export declare const refreshAccessToken: (...args: Parameters<ChaynsReactFunctions["refreshAccessToken"]>) => Promise<void>;
104
96
  /**
105
97
  * This removes a listener to determine your location.
106
98
  * @category Event listener
107
99
  */
108
- export declare const removeGeoLocationListener: (value: number) => Promise<void>;
100
+ export declare const removeGeoLocationListener: (...args: Parameters<ChaynsReactFunctions["removeGeoLocationListener"]>) => Promise<void>;
109
101
  /**
110
102
  * This removes a listener for changing toolbar visibility
111
103
  * @category Event listener
112
104
  */
113
- export declare const removeToolbarChangeListener: (value: number) => Promise<void>;
105
+ export declare const removeToolbarChangeListener: (...args: Parameters<ChaynsReactFunctions["removeToolbarChangeListener"]>) => Promise<void>;
114
106
  /**
115
107
  * Removes scroll listener.
116
108
  * @category Event listener
117
109
  */
118
- export declare const removeScrollListener: (value: number) => Promise<void>;
110
+ export declare const removeScrollListener: (...args: Parameters<ChaynsReactFunctions["removeScrollListener"]>) => Promise<void>;
119
111
  /**
120
112
  * Removes visibility change listener.
121
113
  * @category Event listener
122
114
  */
123
- export declare const removeVisibilityChangeListener: (value: number) => Promise<void>;
115
+ export declare const removeVisibilityChangeListener: (...args: Parameters<ChaynsReactFunctions["removeVisibilityChangeListener"]>) => Promise<void>;
124
116
  /**
125
117
  * Removes window metrics listener.
126
118
  * @category Event listener
127
119
  */
128
- export declare const removeWindowMetricsListener: (value: number) => Promise<void>;
120
+ export declare const removeWindowMetricsListener: (...args: Parameters<ChaynsReactFunctions["removeWindowMetricsListener"]>) => Promise<void>;
129
121
  /**
130
122
  * Select other page on chayns site.
131
123
  */
132
- export declare const selectPage: (value: import("../types/IChaynsReact").SelectPage) => Promise<void>;
124
+ export declare const selectPage: (...args: Parameters<ChaynsReactFunctions["selectPage"]>) => Promise<void>;
133
125
  /**
134
126
  * Scrolls by specific amount.
135
127
  */
136
- export declare const scrollByY: (position: number, duration?: number | undefined) => Promise<void>;
128
+ export declare const scrollByY: (...args: Parameters<ChaynsReactFunctions["scrollByY"]>) => Promise<void>;
137
129
  /**
138
130
  * Scrolls to specific position.
139
131
  */
140
- export declare const scrollToY: (position: number, duration: number) => Promise<void>;
132
+ export declare const scrollToY: (...args: Parameters<ChaynsReactFunctions["scrollToY"]>) => Promise<void>;
141
133
  /**
142
134
  * Sends intercom message to group.
143
135
  */
144
- export declare const sendMessageToGroup: (groupId: number, message: import("../types/IChaynsReact").IntercomMessage) => Promise<Response>;
136
+ export declare const sendMessageToGroup: (...args: Parameters<ChaynsReactFunctions["sendMessageToGroup"]>) => Promise<Response>;
145
137
  /**
146
138
  * Sends intercom message to page.
147
139
  */
148
- export declare const sendMessageToPage: (message: import("../types/IChaynsReact").IntercomMessage) => Promise<Response>;
140
+ export declare const sendMessageToPage: (...args: Parameters<ChaynsReactFunctions["sendMessageToPage"]>) => Promise<Response>;
149
141
  /**
150
142
  * Sends intercom message to an user.
151
143
  */
152
- export declare const sendMessageToUser: (userId: number, message: import("../types/IChaynsReact").IntercomMessage) => Promise<Response>;
144
+ export declare const sendMessageToUser: (...args: Parameters<ChaynsReactFunctions["sendMessageToUser"]>) => Promise<Response>;
153
145
  /**
154
146
  * Switches admin mode, also toggles admin switch in top frame.
155
147
  */
156
- export declare const setAdminMode: (enabled: boolean) => Promise<void>;
148
+ export declare const setAdminMode: (...args: Parameters<ChaynsReactFunctions["setAdminMode"]>) => Promise<void>;
157
149
  /**
158
150
  * Sets the display timeout, only works in chayns App.
159
151
  */
160
- export declare const setDisplayTimeout: (enabled: boolean) => Promise<import("../types/IChaynsReact").DisplayTimeout>;
152
+ export declare const setDisplayTimeout: (...args: Parameters<ChaynsReactFunctions["setDisplayTimeout"]>) => Promise<import("../types/IChaynsReact").DisplayTimeout>;
161
153
  /**
162
154
  * Enables or disables a button which floats over the page.
163
155
  */
164
- export declare const setFloatingButton: (value: import("../types/IChaynsReact").FloatingButton, callback: () => void) => Promise<void>;
156
+ export declare const setFloatingButton: (...args: Parameters<ChaynsReactFunctions["setFloatingButton"]>) => Promise<void>;
165
157
  /**
166
158
  * Sets the height of the page.
167
159
  */
168
- export declare const setHeight: (height: number) => Promise<void>;
160
+ export declare const setHeight: (...args: Parameters<ChaynsReactFunctions["setHeight"]>) => Promise<void>;
169
161
  /**
170
162
  * Enables or disables the ability to refresh a page
171
163
  */
172
- export declare const setRefreshScrollEnabled: (enabled: boolean) => Promise<import("../types/IChaynsReact").RefreshScrollEnabled>;
164
+ export declare const setRefreshScrollEnabled: (...args: Parameters<ChaynsReactFunctions["setRefreshScrollEnabled"]>) => Promise<import("../types/IChaynsReact").RefreshScrollEnabled>;
173
165
  /**
174
166
  * Scans a qr-code and returns the result
175
167
  */
176
- export declare const setScanQrCode: (value: import("../types/IChaynsReact").ScanQrCodeRequest) => Promise<import("../types/IChaynsReact").ScanQrCodeResult>;
168
+ export declare const setScanQrCode: (...args: Parameters<ChaynsReactFunctions["setScanQrCode"]>) => Promise<import("../types/IChaynsReact").ScanQrCodeResult>;
177
169
  /**
178
170
  * Temporarily change design settings in top frame
179
171
  */
180
- export declare const setTempDesignSettings: (value: import("../types/IChaynsReact").DesignSettings) => Promise<void>;
172
+ export declare const setTempDesignSettings: (...args: Parameters<ChaynsReactFunctions["setTempDesignSettings"]>) => Promise<void>;
181
173
  /**
182
174
  * Shows or hide a waitcursor
183
175
  */
184
- export declare const setWaitCursor: (value: import("../types/IChaynsReact").WaitCursor) => Promise<void>;
176
+ export declare const setWaitCursor: (...args: Parameters<ChaynsReactFunctions["setWaitCursor"]>) => Promise<void>;
185
177
  /**
186
178
  * Retrieves the value that is assigned to the key from a storage outside the frame
187
179
  */
188
- export declare const storageGetItem: <T extends object | number | string>(key: string, accessMode?: import("../types/IChaynsReact").AccessMode | undefined) => Promise<T | undefined>;
180
+ export declare const storageGetItem: <T extends object | number | string>(...args: Parameters<ChaynsReactFunctions["storageGetItem"]>) => Promise<T | undefined>;
189
181
  /**
190
182
  * Removes the value that is assigned to the key from a storage outside the frame
191
183
  */
192
- export declare const storageRemoveItem: (key: string, accessMode?: import("../types/IChaynsReact").AccessMode | undefined) => Promise<void>;
184
+ export declare const storageRemoveItem: (...args: Parameters<ChaynsReactFunctions["storageRemoveItem"]>) => Promise<void>;
193
185
  /**
194
186
  * Sets the value that is assigned to the key from a storage outside the frame
195
187
  */
@@ -197,7 +189,7 @@ export declare const storageSetItem: ChaynsReactFunctions["storageSetItem"];
197
189
  /**
198
190
  * This method lets a smartphone vibrate for the given time.
199
191
  */
200
- export declare const vibrate: (value: import("../types/IChaynsReact").Vibrate) => Promise<void>;
192
+ export declare const vibrate: (...args: Parameters<ChaynsReactFunctions["vibrate"]>) => Promise<void>;
201
193
  /**
202
194
  * This method creates a dialog
203
195
  */
@@ -205,7 +197,7 @@ export declare const createDialog: ChaynsReactFunctions["createDialog"];
205
197
  /**
206
198
  * Displays an overlay
207
199
  */
208
- export declare const setOverlay: (value: import("../types/IChaynsReact").ShowOverlay, callback: () => void) => Promise<void>;
200
+ export declare const setOverlay: (...args: Parameters<ChaynsReactFunctions["setOverlay"]>) => Promise<void>;
209
201
  /**
210
202
  * Generates a temp accesstoken, only valid for short period of time (~3 days), works only when no user is logged in
211
203
  */
@@ -1,4 +1,4 @@
1
- export default class DialogHandler<S = void, T extends any = void> {
1
+ export default class DialogHandler<T = unknown> {
2
2
  private dialogId;
3
3
  private isOpen;
4
4
  private result;
@@ -11,7 +11,7 @@ export default class DialogHandler<S = void, T extends any = void> {
11
11
  constructor(config: any, open: any, close: any, dispatchEvent: any, addDataListener: any);
12
12
  open(): Promise<{
13
13
  buttonType: number;
14
- result: T extends undefined ? S : T;
14
+ result: T;
15
15
  }>;
16
16
  close(buttonType: any, data: any): void;
17
17
  dispatchEvent(data: object): void;
@@ -19,6 +19,6 @@ export default class DialogHandler<S = void, T extends any = void> {
19
19
  removeDataListener(listener: (data: any) => void): void;
20
20
  getResult(): {
21
21
  buttonType: number;
22
- result: T extends undefined ? S : T;
22
+ result: T;
23
23
  } | undefined;
24
24
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * @category Hooks
3
3
  */
4
- export declare const useCustomData: <T extends unknown>() => T;
4
+ export declare const useCustomData: <T extends any>() => T;
@@ -6,4 +6,4 @@ export declare const useDialogState: () => DialogHookResult;
6
6
  /**
7
7
  * @category Hooks
8
8
  */
9
- export declare const useDialogData: <T extends unknown>() => T;
9
+ export declare const useDialogData: <T extends any>() => T;
@@ -83,11 +83,11 @@ export interface BaseDialog {
83
83
  config?: any;
84
84
  };
85
85
  }
86
- export type Dialog<T extends any = object> = BaseDialog & (DialogAlert | DialogConfirm | DialogInput | DialogModule<T> | DialogIFrame<T> | DialogSelect | DialogDate | DialogToast | DialogSignature | DialogFileSelect);
86
+ export type Dialog<T = object> = BaseDialog & (DialogAlert | DialogConfirm | DialogInput | DialogModule<T> | DialogIFrame<T> | DialogSelect | DialogDate | DialogToast | DialogSignature | DialogFileSelect);
87
87
  export interface DialogSignature {
88
88
  type: DialogType.SIGNATURE;
89
89
  }
90
- export interface DialogModule<T extends any = object> {
90
+ export interface DialogModule<T = object> {
91
91
  type: DialogType.MODULE;
92
92
  system: {
93
93
  url: string;
@@ -99,7 +99,7 @@ export interface DialogModule<T extends any = object> {
99
99
  allowAnonymousUser?: boolean;
100
100
  seamless?: boolean;
101
101
  }
102
- export interface DialogIFrame<T extends any = object> {
102
+ export interface DialogIFrame<T = object> {
103
103
  type: DialogType.IFRAME;
104
104
  url: string;
105
105
  dialogInput?: T;
@@ -322,18 +322,6 @@ export interface DialogResultFile {
322
322
  size: number;
323
323
  url: string;
324
324
  }
325
- export type DialogResultValue<T> = {
326
- [DialogType.INPUT]: string;
327
- [DialogType.SELECT]: (number | string)[];
328
- [DialogType.CONFIRM]: void;
329
- [DialogType.ALERT]: void;
330
- [DialogType.DATE]: Date;
331
- [DialogType.FILE_SELECT]: DialogResultFile[];
332
- [DialogType.IFRAME]: T;
333
- [DialogType.MODULE]: T;
334
- [DialogType.SIGNATURE]: string;
335
- [DialogType.TOAST]: void;
336
- };
337
325
  /**
338
326
  * @ignore
339
327
  */
@@ -393,7 +381,17 @@ export interface ChaynsReactFunctions {
393
381
  vibrate: (value: Vibrate) => Promise<void>;
394
382
  scrollByY: (position: number, duration?: number) => Promise<void>;
395
383
  setOverlay: (value: ShowOverlay, callback: () => void) => Promise<void>;
396
- createDialog: <I extends any = undefined, T extends any = undefined, Z extends Dialog<I> = Dialog<I>>(config: Z) => DialogHandler<DialogResultValue<T>[Z["type"]], T>;
384
+ createDialog(config: BaseDialog & (DialogAlert | DialogConfirm | DialogToast)): DialogHandler<void>;
385
+ createDialog(config: BaseDialog & (DialogInput | DialogSignature)): DialogHandler<string>;
386
+ createDialog(config: BaseDialog & DialogSelect): DialogHandler<(number | string)[]>;
387
+ createDialog(config: BaseDialog & DialogDate & ({
388
+ multiselect: true;
389
+ } | {
390
+ interval: true;
391
+ })): DialogHandler<Date[]>;
392
+ createDialog(config: BaseDialog & DialogDate): DialogHandler<Date>;
393
+ createDialog(config: BaseDialog & DialogFileSelect): DialogHandler<DialogResultFile[]>;
394
+ createDialog<I = any, R = unknown>(config: BaseDialog & (DialogModule<I> | DialogIFrame<I>)): DialogHandler<R>;
397
395
  openDialog: (value: any, callback: (data: any) => any) => Promise<any>;
398
396
  closeDialog: (dialogId: number) => Promise<void>;
399
397
  setDialogResult: (buttonType: DialogButtonType, result: any) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "2.2.9",
3
+ "version": "2.2.10",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -44,7 +44,7 @@
44
44
  "extends": "@chayns-toolkit"
45
45
  },
46
46
  "dependencies": {
47
- "@module-federation/enhanced": "^0.8.9",
47
+ "@module-federation/enhanced": "^0.10.0",
48
48
  "comlink": "4.3.1",
49
49
  "htmlescape": "^1.1.1",
50
50
  "lodash.throttle": "^4.1.1",
@@ -54,7 +54,7 @@
54
54
  "devDependencies": {
55
55
  "@babel/cli": "^7.26.4",
56
56
  "@babel/core": "^7.26.9",
57
- "@babel/preset-env": "^7.26.0",
57
+ "@babel/preset-env": "^7.26.9",
58
58
  "@babel/preset-react": "^7.26.3",
59
59
  "@babel/preset-typescript": "^7.26.0",
60
60
  "@chayns-toolkit/eslint-config": "^2.0.0",
@@ -67,14 +67,14 @@
67
67
  "@types/ua-parser-js": "^0.7.39",
68
68
  "@types/use-sync-external-store": "^0.0.6",
69
69
  "@typescript-eslint/parser": "^7.6.0",
70
- "chayns-toolkit": "^3.2.0",
70
+ "chayns-toolkit": "^3.2.6",
71
71
  "concurrently": "^9.1.2",
72
72
  "cross-env": "^7.0.3",
73
- "prettier": "^3.5.1",
74
- "prettier-plugin-packagejson": "^2.5.8",
73
+ "prettier": "^3.5.3",
74
+ "prettier-plugin-packagejson": "^2.5.10",
75
75
  "react": "^18.3.1",
76
76
  "react-dom": "^18.3.1",
77
- "typescript": "^5.7.3"
77
+ "typescript": "^5.8.2"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "react": "^16.8 || ^17.0.1 || ^18.0.0 || ^19.0.0",