@authing/guard-shim-react 4.5.51-eak.19 → 4.5.51-eak.20

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.
@@ -40,7 +40,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
40
40
  id: string;
41
41
  loginAccount?: string | undefined;
42
42
  usertype?: string | undefined;
43
- }, "way" | "tab" | "phoneCountryCode">) => void;
43
+ }, "tab" | "way" | "phoneCountryCode">) => void;
44
44
  setLoginWayByHttpData: (account: string, data: {
45
45
  username?: string | undefined;
46
46
  phone?: string | undefined;
@@ -62,7 +62,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
62
62
  getOriginAccount: () => string;
63
63
  getOriginWay: () => string;
64
64
  } | undefined;
65
- referMultipleState: ((type: "login" | "multiple") => void) | undefined;
65
+ referMultipleState: ((type: "multiple" | "login") => void) | undefined;
66
66
  backfillData: BackFillMultipleState | undefined;
67
67
  defaultQrWay: string | undefined;
68
68
  };
@@ -1,7 +1,11 @@
1
1
  import { React } from 'shim-react';
2
- export declare const ShieldSpinLoading: (props: JSX.IntrinsicAttributes & React.ClassAttributes<HTMLEmbedElement> & React.EmbedHTMLAttributes<HTMLEmbedElement>) => JSX.Element;
2
+ export declare const EAK_LOADING_SPINNER_SIZE = 20;
3
+ export declare const EAK_LOADING_SVG_STRING = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\" aria-label=\"Loading\" role=\"img\" focusable=\"false\" style=\"display:block;width:var(--eak-loading-size,20px);height:var(--eak-loading-size,20px);overflow:visible;\">\n <style>\n @keyframes eak-loading-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n .eak-loading-spinner__arc {\n transform-origin: 10px 10px;\n animation: eak-loading-spin 900ms linear infinite;\n }\n </style>\n <circle cx=\"10\" cy=\"10\" r=\"7.2\" fill=\"none\" stroke=\"rgba(28, 28, 30, 0.12)\" stroke-width=\"1.6\"/>\n <circle class=\"eak-loading-spinner__arc\" cx=\"10\" cy=\"10\" r=\"7.2\" fill=\"none\" stroke=\"rgba(28, 28, 30, 0.38)\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-dasharray=\"18 46\"/>\n</svg>";
4
+ export declare const ShieldSpinLoading: (props: JSX.IntrinsicAttributes & React.HTMLAttributes<HTMLDivElement> & {
5
+ size?: number | string;
6
+ }) => JSX.Element;
3
7
  interface IG2SpinProps {
4
- size?: number;
8
+ size?: number | string;
5
9
  className?: string;
6
10
  }
7
11
  export declare const ShieldSpin: (props: IG2SpinProps) => JSX.Element;
@@ -54,7 +54,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
54
54
  loginMethods?: LoginMethods[] | undefined;
55
55
  passwordLoginMethods?: string[] | undefined;
56
56
  socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
57
- socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
57
+ socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
58
58
  enterpriseConnections?: string[] | undefined;
59
59
  qrCodeScanOptions?: {
60
60
  extIdpConnId?: string | undefined;
@@ -124,7 +124,7 @@ export declare const useGuardAccountSelectInstance: () => {
124
124
  id: string;
125
125
  loginAccount?: string | undefined;
126
126
  usertype?: string | undefined;
127
- }, "way" | "tab" | "phoneCountryCode">) => void;
127
+ }, "tab" | "way" | "phoneCountryCode">) => void;
128
128
  setLoginWayByHttpData: (account: string, data: {
129
129
  username?: string | undefined;
130
130
  phone?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.51-eak.19",
3
+ "version": "4.5.51-eak.20",
4
4
  "description": "Guard shim for react 16 / 17, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",