@applica-software-guru/react-admin 1.5.327 → 1.5.329
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/dist/ApplicaAdmin.d.ts +9 -1
- package/dist/ApplicaAdmin.d.ts.map +1 -1
- package/dist/components/ra-buttons/GoogleLoginButton.d.ts +6 -0
- package/dist/components/ra-buttons/GoogleLoginButton.d.ts.map +1 -0
- package/dist/components/ra-buttons/index.d.ts +1 -0
- package/dist/components/ra-buttons/index.d.ts.map +1 -1
- package/dist/components/ra-pages/LoginPage.d.ts +9 -1
- package/dist/components/ra-pages/LoginPage.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +82 -69
- package/dist/react-admin.cjs.js.gz +0 -0
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +18666 -14730
- package/dist/react-admin.es.js.gz +0 -0
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +82 -69
- package/dist/react-admin.umd.js.gz +0 -0
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +2 -1
- package/src/ApplicaAdmin.tsx +20 -3
- package/src/components/ra-buttons/GoogleLoginButton.tsx +76 -0
- package/src/components/ra-buttons/index.ts +1 -0
- package/src/components/ra-pages/LoginPage.tsx +27 -1
- package/src/components/ra-pages/RegisterPage.tsx +1 -1
- package/src/playground/App.jsx +3 -0
package/dist/ApplicaAdmin.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { QueryClient } from 'react-query';
|
|
|
7
7
|
/**
|
|
8
8
|
* Define a basic super cool application based on React Admin, Mantis Theme and our style.
|
|
9
9
|
*/
|
|
10
|
-
declare function ApplicaAdmin({ theme, themeConfig, apiUrl, defaultLocale, development, logoMain, logoIcon, loginPage, menu, name, copy, version, dataProvider, authProvider, i18nProvider: _i18nProvider, errorHandler, error, enableNotification, enableRegistration, enablePasswordRecover, enableThemeToggler, enableLocaleSwitcher, queryClient, background, notificationAPI, ...props }: ApplicaAdminProps): JSX.Element;
|
|
10
|
+
declare function ApplicaAdmin({ theme, themeConfig, apiUrl, defaultLocale, development, logoMain, logoIcon, loginPage, menu, name, copy, version, dataProvider, authProvider, i18nProvider: _i18nProvider, errorHandler, error, enableNotification, enableRegistration, enablePasswordRecover, enableThemeToggler, enableLocaleSwitcher, oauth, queryClient, background, notificationAPI, ...props }: ApplicaAdminProps): JSX.Element;
|
|
11
11
|
type ApplicaAdminProps = AdminProps & {
|
|
12
12
|
/**
|
|
13
13
|
* Optionally, a custom theme to use in the application.
|
|
@@ -143,6 +143,14 @@ type ApplicaAdminProps = AdminProps & {
|
|
|
143
143
|
* Indicates whether the locale switcher should be displayed.
|
|
144
144
|
*/
|
|
145
145
|
enableLocaleSwitcher: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Indicates which OAuth providers to enable and configurations.
|
|
148
|
+
*/
|
|
149
|
+
oauth: {
|
|
150
|
+
google?: {
|
|
151
|
+
clientId: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
146
154
|
};
|
|
147
155
|
export { ApplicaAdmin };
|
|
148
156
|
export type { ApplicaAdminProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicaAdmin.d.ts","sourceRoot":"","sources":["../../src/ApplicaAdmin.tsx"],"names":[],"mappings":"AACA,OAAO,EAAe,kBAAkB,EAAwB,MAAM,OAAO,CAAC;AAG9E,OAAO,EAOL,QAAQ,EAGT,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,WAAW,EAAiB,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"ApplicaAdmin.d.ts","sourceRoot":"","sources":["../../src/ApplicaAdmin.tsx"],"names":[],"mappings":"AACA,OAAO,EAAe,kBAAkB,EAAwB,MAAM,OAAO,CAAC;AAG9E,OAAO,EAOL,QAAQ,EAGT,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,WAAW,EAAiB,MAAM,mCAAmC,CAAC;AAE/E,OAAO,KAAkB,M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,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAErC;;;;OAIG;IACH,YAAY,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC9C;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;;;;;OAOG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B;;OAEG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,oBAAoB,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,KAAK,EAAE;QACL,MAAM,CAAC,EAAE;YACP,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;KACH,CAAC;CACH,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type GoogleLoginButtonProps = {
|
|
2
|
+
setLoading: (loading: boolean) => void;
|
|
3
|
+
};
|
|
4
|
+
declare function GoogleLoginButton({ setLoading }: GoogleLoginButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { GoogleLoginButton };
|
|
6
|
+
//# sourceMappingURL=GoogleLoginButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleLoginButton.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-buttons/GoogleLoginButton.tsx"],"names":[],"mappings":"AAQA,KAAK,sBAAsB,GAAG;IAC5B,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,iBAAS,iBAAiB,CAAC,EAAE,UAAU,EAAE,EAAE,sBAAsB,2CA6DhE;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -4,5 +4,6 @@ export * from './CreateButton';
|
|
|
4
4
|
export * from './CreateInDialogButton';
|
|
5
5
|
export * from './DeleteWithConfirmButton';
|
|
6
6
|
export * from './EditInDialogButton';
|
|
7
|
+
export * from './GoogleLoginButton';
|
|
7
8
|
export * from './ImpersonateUserButton';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-buttons/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-buttons/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC"}
|
|
@@ -32,8 +32,16 @@ type LoginPageProps = BaseAuthProps & {
|
|
|
32
32
|
* If not specified, the react-admin home page is used.
|
|
33
33
|
*/
|
|
34
34
|
redirectTo: string;
|
|
35
|
+
/**
|
|
36
|
+
* Indicates which OAuth providers to enable and configurations.
|
|
37
|
+
*/
|
|
38
|
+
oauth?: {
|
|
39
|
+
google?: {
|
|
40
|
+
clientId: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
35
43
|
};
|
|
36
|
-
declare function LoginPage({ version, name, copy, logo, enablePasswordRecover, enableRegistration, redirectTo, background }: LoginPageProps): JSX.Element;
|
|
44
|
+
declare function LoginPage({ version, name, copy, logo, enablePasswordRecover, enableRegistration, oauth, redirectTo, background }: LoginPageProps): JSX.Element;
|
|
37
45
|
export { LoginPage };
|
|
38
46
|
export type { LoginPageProps };
|
|
39
47
|
//# sourceMappingURL=LoginPage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginPage.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/LoginPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"LoginPage.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/LoginPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAWxC,KAAK,cAAc,GAAG,aAAa,GAAG;IACpC;;;;;;;;;;;OAWG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE;QACN,MAAM,CAAC,EAAE;YACP,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;KACH,CAAC;CACH,CAAC;AACF,iBAAS,SAAS,CAAC,EACjB,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,qBAA6B,EAC7B,kBAA0B,EAC1B,KAAU,EACV,UAAU,EACV,UAA+B,EAChC,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CA2H9B;AAED,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,cAAc,EAAE,CAAC"}
|