@authing/guard-shim-react 4.5.51-eak.2 → 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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.51-eak.2",
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",