@fewbox/den 0.0.88 → 0.0.90

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewbox/den",
3
- "version": "0.0.88",
3
+ "version": "0.0.90",
4
4
  "main": "index.js",
5
5
  "types": "index-app.d.ts",
6
6
  "repository": "https://github.com/FewBox/fewbox-den.git",
@@ -0,0 +1,41 @@
1
+ import { IChildrenProps } from '../../Engine/Base';
2
+ export interface GoogleGrantToken {
3
+ accessToken: string;
4
+ expiresIn: string;
5
+ hd: string;
6
+ prompt: string;
7
+ tokenType: string;
8
+ scope: string;
9
+ state: string;
10
+ error: string;
11
+ errorDescription: string;
12
+ errorUri: string;
13
+ }
14
+ export interface GoogleGrantCode {
15
+ code: string;
16
+ scope: string;
17
+ state: string;
18
+ error: string;
19
+ errorDescription: string;
20
+ errorUri: string;
21
+ }
22
+ export declare enum GoogleGrantUXMode {
23
+ Popup = "popup",
24
+ Redirect = "redirect"
25
+ }
26
+ export declare enum GoogleGrantCategory {
27
+ Implicit = "implicit",
28
+ AuthorizationCode = "authorization-code"
29
+ }
30
+ export interface IGoogleGrantProps extends IChildrenProps {
31
+ category?: GoogleGrantCategory;
32
+ uxMode?: GoogleGrantUXMode;
33
+ clientId: string;
34
+ scope: string;
35
+ isAutoRequest?: boolean;
36
+ callback: (callbackResult: GoogleGrantToken | GoogleGrantCode) => void;
37
+ enableGoogle: () => void;
38
+ disableGoogle: () => void;
39
+ }
40
+ declare const GoogleGrant: (props: IGoogleGrantProps) => JSX.Element;
41
+ export default GoogleGrant;
@@ -1,11 +1,11 @@
1
- export declare enum GoogleSigninCategory {
1
+ export declare enum GoogleSigninUXMode {
2
2
  Prompt = "prompt",
3
3
  Popup = "popup",
4
4
  Redirect = "redirect"
5
5
  }
6
6
  export interface IGoogleSigninProps {
7
7
  clientId: string;
8
- category: GoogleSigninCategory;
8
+ uxMode: GoogleSigninUXMode;
9
9
  redirectUrl?: string;
10
10
  gsiButtonConfiguration?: google.accounts.id.GsiButtonConfiguration;
11
11
  callback: (credential: string) => void;
@@ -123,9 +123,9 @@ export { default as VSwitch } from './View/VSwitch';
123
123
  export { default as VFrame } from './View/VFrame';
124
124
  export { default as VPaypal } from './View/VPaypal';
125
125
  export { default as GA4 } from './Analyze/GA4';
126
- export { default as Google } from './Api/Google';
126
+ export { default as GoogleGrant, GoogleGrantCategory, GoogleGrantUXMode, GoogleGrantCode, GoogleGrantToken } from './Auth/GoogleGrant';
127
127
  export { default as FigmaSignin } from './Auth/FigmaSignin';
128
- export { default as GoogleSignin, GoogleSigninCategory } from './Auth/GoogleSignin';
128
+ export { default as GoogleSignin, GoogleSigninUXMode } from './Auth/GoogleSignin';
129
129
  export { default as WeComSignin } from './Auth/WeComSignin';
130
130
  export { IUserProfile, parseJWT } from './Auth/util';
131
131
  export { ga4Scope, ga4Event, ga4Init, ga4Pageview, ga4SetFieldsObject, IGAEvent, IGA4Options, ICustomGA4Options, IGAOptions, ICustomGAOptions, IGTagOptions, ICustomGTagOptions, IGFieldsObject, GAEventTransportType } from './Analyze/util';
@@ -1,9 +0,0 @@
1
- import { IChildrenProps } from '../../Engine/Base';
2
- export interface IGoogleProps extends IChildrenProps {
3
- clientId: string;
4
- callback: (accessToken: string) => void;
5
- enableGoogle: () => void;
6
- disableGoogle: () => void;
7
- }
8
- declare const Google: (props: IGoogleProps) => JSX.Element;
9
- export default Google;