@zoreal/oauth2-react 0.2.14 → 0.2.16
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 +23 -1
- package/dist/index.cjs +233 -229
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +232 -229
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The public types of @zoreal/oauth2-react.
|
|
@@ -243,6 +243,17 @@ declare function useZorealOAuth(): ZorealOAuthContextProps;
|
|
|
243
243
|
|
|
244
244
|
declare function ZorealLogin(props: ZorealLoginProps): react.JSX.Element;
|
|
245
245
|
|
|
246
|
+
declare function ZorealBusyRing({ busy, radius, theme, block, className, style, children, }: {
|
|
247
|
+
busy: boolean;
|
|
248
|
+
radius?: number;
|
|
249
|
+
theme?: ZorealTheme;
|
|
250
|
+
/** Lay the wrapper out as a block, for a button that fills its row. */
|
|
251
|
+
block?: boolean;
|
|
252
|
+
className?: string;
|
|
253
|
+
style?: CSSProperties;
|
|
254
|
+
children: ReactNode;
|
|
255
|
+
}): react.JSX.Element;
|
|
256
|
+
|
|
246
257
|
/**
|
|
247
258
|
* The pairing modal, rendered by the SDK rather than by every integrator.
|
|
248
259
|
*
|
|
@@ -312,4 +323,4 @@ declare function hasGrantedAnyScopeZoreal(response: Pick<ZorealCodeResponse, 'sc
|
|
|
312
323
|
*/
|
|
313
324
|
declare function resolveIntent(intent: LoginIntent | undefined, scope: string | undefined, acrValues: string | readonly string[] | undefined): LoginIntent;
|
|
314
325
|
|
|
315
|
-
export { type AcrValue, type AuthCodeFlowOptions, type BrowserDirectFlowOptions, DEFAULT_PAIRING_TIMEOUT_MS, type ErrorCode, type LoginIntent, type NonOAuthError, PairingModal, type PairingModalProps, type PairingState, type PairingUI, type SelectBy, type UseZorealAutoLoginOptions, type ZorealButtonConfiguration, type ZorealCodeResponse, type ZorealCredentialResponse, ZorealLogin, type ZorealLoginProps, type ZorealLoginRequestOptions, type ZorealOAuthContextProps, ZorealOAuthProvider, type ZorealOAuthProviderProps, type ZorealTheme, hasGrantedAllScopesZoreal, hasGrantedAnyScopeZoreal, resolveIntent, useZorealAutoLogin, useZorealLogin, useZorealOAuth, zorealLogout };
|
|
326
|
+
export { type AcrValue, type AuthCodeFlowOptions, type BrowserDirectFlowOptions, DEFAULT_PAIRING_TIMEOUT_MS, type ErrorCode, type LoginIntent, type NonOAuthError, PairingModal, type PairingModalProps, type PairingState, type PairingUI, type SelectBy, type UseZorealAutoLoginOptions, ZorealBusyRing, type ZorealButtonConfiguration, type ZorealCodeResponse, type ZorealCredentialResponse, ZorealLogin, type ZorealLoginProps, type ZorealLoginRequestOptions, type ZorealOAuthContextProps, ZorealOAuthProvider, type ZorealOAuthProviderProps, type ZorealTheme, hasGrantedAllScopesZoreal, hasGrantedAnyScopeZoreal, resolveIntent, useZorealAutoLogin, useZorealLogin, useZorealOAuth, zorealLogout };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The public types of @zoreal/oauth2-react.
|
|
@@ -243,6 +243,17 @@ declare function useZorealOAuth(): ZorealOAuthContextProps;
|
|
|
243
243
|
|
|
244
244
|
declare function ZorealLogin(props: ZorealLoginProps): react.JSX.Element;
|
|
245
245
|
|
|
246
|
+
declare function ZorealBusyRing({ busy, radius, theme, block, className, style, children, }: {
|
|
247
|
+
busy: boolean;
|
|
248
|
+
radius?: number;
|
|
249
|
+
theme?: ZorealTheme;
|
|
250
|
+
/** Lay the wrapper out as a block, for a button that fills its row. */
|
|
251
|
+
block?: boolean;
|
|
252
|
+
className?: string;
|
|
253
|
+
style?: CSSProperties;
|
|
254
|
+
children: ReactNode;
|
|
255
|
+
}): react.JSX.Element;
|
|
256
|
+
|
|
246
257
|
/**
|
|
247
258
|
* The pairing modal, rendered by the SDK rather than by every integrator.
|
|
248
259
|
*
|
|
@@ -312,4 +323,4 @@ declare function hasGrantedAnyScopeZoreal(response: Pick<ZorealCodeResponse, 'sc
|
|
|
312
323
|
*/
|
|
313
324
|
declare function resolveIntent(intent: LoginIntent | undefined, scope: string | undefined, acrValues: string | readonly string[] | undefined): LoginIntent;
|
|
314
325
|
|
|
315
|
-
export { type AcrValue, type AuthCodeFlowOptions, type BrowserDirectFlowOptions, DEFAULT_PAIRING_TIMEOUT_MS, type ErrorCode, type LoginIntent, type NonOAuthError, PairingModal, type PairingModalProps, type PairingState, type PairingUI, type SelectBy, type UseZorealAutoLoginOptions, type ZorealButtonConfiguration, type ZorealCodeResponse, type ZorealCredentialResponse, ZorealLogin, type ZorealLoginProps, type ZorealLoginRequestOptions, type ZorealOAuthContextProps, ZorealOAuthProvider, type ZorealOAuthProviderProps, type ZorealTheme, hasGrantedAllScopesZoreal, hasGrantedAnyScopeZoreal, resolveIntent, useZorealAutoLogin, useZorealLogin, useZorealOAuth, zorealLogout };
|
|
326
|
+
export { type AcrValue, type AuthCodeFlowOptions, type BrowserDirectFlowOptions, DEFAULT_PAIRING_TIMEOUT_MS, type ErrorCode, type LoginIntent, type NonOAuthError, PairingModal, type PairingModalProps, type PairingState, type PairingUI, type SelectBy, type UseZorealAutoLoginOptions, ZorealBusyRing, type ZorealButtonConfiguration, type ZorealCodeResponse, type ZorealCredentialResponse, ZorealLogin, type ZorealLoginProps, type ZorealLoginRequestOptions, type ZorealOAuthContextProps, ZorealOAuthProvider, type ZorealOAuthProviderProps, type ZorealTheme, hasGrantedAllScopesZoreal, hasGrantedAnyScopeZoreal, resolveIntent, useZorealAutoLogin, useZorealLogin, useZorealOAuth, zorealLogout };
|