@akanjs/client 0.9.33 → 0.9.35
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/esm/src/csrTypes.js +4 -1
- package/package.json +2 -2
- package/src/csrTypes.d.ts +9 -9
- package/src/device.d.ts +2 -2
package/esm/src/csrTypes.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/client",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.35",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"js-cookie": "^3.0.5",
|
|
26
26
|
"jwt-decode": "^4.0.0",
|
|
27
27
|
"next": "15.3.2",
|
|
28
|
-
"react": "
|
|
28
|
+
"react": "19.1.1",
|
|
29
29
|
"react-device-detect": "^2.2.3"
|
|
30
30
|
},
|
|
31
31
|
"exports": {
|
package/src/csrTypes.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ReactDOMAttributes } from "@use-gesture/react/dist/declarations/src/types";
|
|
2
|
-
import { type
|
|
3
|
-
import {
|
|
4
|
-
import type { AnimatedComponent, Interpolation, SpringValue } from "react-spring";
|
|
2
|
+
import { type ForwardRefExoticComponent, MutableRefObject, ReactNode, RefObject } from "react";
|
|
3
|
+
import type { AnimatedComponent, AnimatedProps, Interpolation, SpringValue } from "react-spring";
|
|
5
4
|
import type { RouterInstance } from "./router";
|
|
6
5
|
export type TransitionType = "none" | "fade" | "bottomUp" | "stack" | "scaleOut";
|
|
7
6
|
export interface CsrConfig {
|
|
@@ -46,7 +45,8 @@ export interface Route {
|
|
|
46
45
|
pageState?: PageState;
|
|
47
46
|
children: Map<string, Route>;
|
|
48
47
|
}
|
|
49
|
-
export type
|
|
48
|
+
export type AnimatedDivProps = AnimatedComponent<"div"> extends ForwardRefExoticComponent<AnimatedProps<infer P>> ? P : never;
|
|
49
|
+
export type TransitionStyle = AnimatedDivProps["style"];
|
|
50
50
|
export interface SafeAreaTransition {
|
|
51
51
|
containerStyle: TransitionStyle;
|
|
52
52
|
}
|
|
@@ -110,11 +110,11 @@ export interface RouteState {
|
|
|
110
110
|
location: Location;
|
|
111
111
|
prevLocation: Location | null;
|
|
112
112
|
history: MutableRefObject<History>;
|
|
113
|
-
topSafeAreaRef:
|
|
114
|
-
bottomSafeAreaRef:
|
|
115
|
-
prevPageContentRef:
|
|
116
|
-
pageContentRef:
|
|
117
|
-
frameRootRef:
|
|
113
|
+
topSafeAreaRef: RefObject<HTMLDivElement>;
|
|
114
|
+
bottomSafeAreaRef: RefObject<HTMLDivElement>;
|
|
115
|
+
prevPageContentRef: RefObject<HTMLDivElement>;
|
|
116
|
+
pageContentRef: RefObject<HTMLDivElement>;
|
|
117
|
+
frameRootRef: RefObject<HTMLDivElement>;
|
|
118
118
|
onBack: MutableRefObject<{
|
|
119
119
|
[K in TransitionType]?: () => Promise<void>;
|
|
120
120
|
}>;
|
package/src/device.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DeviceInfo } from "@capacitor/device";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RefObject } from "react";
|
|
3
3
|
interface DeviceInitOption {
|
|
4
4
|
lang?: string;
|
|
5
5
|
supportLanguages?: string[] | readonly string[];
|
|
@@ -12,7 +12,7 @@ declare class Device {
|
|
|
12
12
|
bottomSafeArea: number;
|
|
13
13
|
isMobile: boolean;
|
|
14
14
|
init({ lang, supportLanguages }?: DeviceInitOption): Promise<void>;
|
|
15
|
-
setPageContentRef(pageContentRef:
|
|
15
|
+
setPageContentRef(pageContentRef: RefObject<HTMLDivElement>): void;
|
|
16
16
|
showKeyboard(): Promise<void>;
|
|
17
17
|
hideKeyboard(): Promise<void>;
|
|
18
18
|
listenKeyboardChanged(onKeyboardChanged: (height: number) => void): void;
|