@opensecret/react 1.0.0-beta.3 → 1.0.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/README.md +1 -0
- package/dist/index.d.ts +14 -5
- package/dist/opensecret-react.es.js +577 -569
- package/dist/opensecret-react.umd.js +17 -17
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
|
-
import { JSX
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare function acceptInvite(code: string): Promise<{
|
|
@@ -670,7 +670,7 @@ export declare function OpenSecretDeveloper({ children, apiUrl, pcrConfig }: {
|
|
|
670
670
|
children: default_2.ReactNode;
|
|
671
671
|
apiUrl: string;
|
|
672
672
|
pcrConfig?: PcrConfig;
|
|
673
|
-
}):
|
|
673
|
+
}): JSX.Element;
|
|
674
674
|
|
|
675
675
|
export declare type OpenSecretDeveloperAuthState = {
|
|
676
676
|
loading: boolean;
|
|
@@ -768,6 +768,7 @@ export declare type OpenSecretDeveloperContextType = {
|
|
|
768
768
|
* Registers a new developer account
|
|
769
769
|
* @param email - Developer's email address
|
|
770
770
|
* @param password - Developer's password
|
|
771
|
+
* @param invite_code - Required invitation code in UUID format
|
|
771
772
|
* @param name - Optional developer name
|
|
772
773
|
* @returns A promise that resolves to the login response with access and refresh tokens
|
|
773
774
|
*
|
|
@@ -777,7 +778,7 @@ export declare type OpenSecretDeveloperContextType = {
|
|
|
777
778
|
* - Updates the developer state with new user information
|
|
778
779
|
* - Throws an error if account creation fails
|
|
779
780
|
*/
|
|
780
|
-
signUp: (email: string, password: string, name?: string) => Promise<platformApi.PlatformLoginResponse>;
|
|
781
|
+
signUp: (email: string, password: string, invite_code: string, name?: string) => Promise<platformApi.PlatformLoginResponse>;
|
|
781
782
|
/**
|
|
782
783
|
* Signs out the current developer by removing authentication tokens
|
|
783
784
|
*
|
|
@@ -1033,7 +1034,7 @@ export declare function OpenSecretProvider({ children, apiUrl, clientId, pcrConf
|
|
|
1033
1034
|
apiUrl: string;
|
|
1034
1035
|
clientId: string;
|
|
1035
1036
|
pcrConfig?: PcrConfig;
|
|
1036
|
-
}):
|
|
1037
|
+
}): JSX.Element;
|
|
1037
1038
|
|
|
1038
1039
|
declare type Organization = {
|
|
1039
1040
|
id: string;
|
|
@@ -1188,7 +1189,15 @@ declare type PlatformRefreshResponse = {
|
|
|
1188
1189
|
*/
|
|
1189
1190
|
declare function platformRefreshToken(): Promise<PlatformRefreshResponse>;
|
|
1190
1191
|
|
|
1191
|
-
|
|
1192
|
+
/**
|
|
1193
|
+
* Registers a new platform developer account
|
|
1194
|
+
* @param email Developer's email address
|
|
1195
|
+
* @param password Developer's password
|
|
1196
|
+
* @param invite_code Required invitation code in UUID format
|
|
1197
|
+
* @param name Optional developer name
|
|
1198
|
+
* @returns A promise that resolves to the login response with access and refresh tokens
|
|
1199
|
+
*/
|
|
1200
|
+
declare function platformRegister(email: string, password: string, invite_code: string, name?: string): Promise<PlatformLoginResponse>;
|
|
1192
1201
|
|
|
1193
1202
|
declare type PlatformUser = {
|
|
1194
1203
|
id: string;
|