@pmate/account-sdk 0.2.0 → 0.3.0
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.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.es.js +1430 -1388
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -3
package/dist/index.d.ts
CHANGED
|
@@ -114,8 +114,12 @@ type AuthProviderV2Props = PropsWithChildren<{
|
|
|
114
114
|
rtcProvider?: React.ComponentType<{
|
|
115
115
|
children: React.ReactNode;
|
|
116
116
|
}>;
|
|
117
|
+
pathname?: string;
|
|
118
|
+
navigate?: (to: string, options?: {
|
|
119
|
+
replace?: boolean;
|
|
120
|
+
}) => void;
|
|
117
121
|
}>;
|
|
118
|
-
declare const AuthProviderV2: ({ app, authRoutes, rtcProvider: RtcProvider, children, }: AuthProviderV2Props) => string | number | boolean | Iterable<react.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
122
|
+
declare const AuthProviderV2: ({ app, authRoutes, rtcProvider: RtcProvider, pathname: pathnameProp, navigate: navigateProp, children, }: AuthProviderV2Props) => string | number | boolean | Iterable<react.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
119
123
|
|
|
120
124
|
declare const DEFAULT_APP_ID = "@pmate/chat";
|
|
121
125
|
interface ProfileStep$1 {
|
|
@@ -144,8 +148,8 @@ type UseProfileStepFlowParams = {
|
|
|
144
148
|
params: URLSearchParams;
|
|
145
149
|
};
|
|
146
150
|
declare const useProfileStepFlow: ({ params, }: UseProfileStepFlowParams) => {
|
|
147
|
-
activeStep: "
|
|
148
|
-
appProfileSteps: ("
|
|
151
|
+
activeStep: "nickname" | "learning-language" | "mother-tongue" | "gender" | "is-adult" | "age";
|
|
152
|
+
appProfileSteps: ("nickname" | "learning-language" | "mother-tongue" | "gender" | "is-adult" | "age")[];
|
|
149
153
|
buildStepUrl: (next: ProfileStepType) => string;
|
|
150
154
|
createSteps: ProfileStepType[];
|
|
151
155
|
isCreateFlowStep: boolean;
|