@autobusal/providers 1.2.5 → 1.2.7

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/Providers.tsx CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Suspense } from 'react';
2
+ import Recaptcha from './Recaptcha/Recaptcha';
2
3
  import Queries from './Queries/Queries';
3
4
  import Styles from './Styles/Styles';
4
5
  import Notifications from './Notifications/Notifications';
@@ -11,17 +12,19 @@ interface Props {
11
12
  }
12
13
 
13
14
  const Providers = ({ type, loading, children }: Props): JSX.Element => (
14
- <Queries>
15
- <Styles>
16
- <Notifications>
17
- <Setup type={ type }>
18
- <Suspense fallback={ loading }>
19
- { children }
20
- </Suspense>
21
- </Setup>
22
- </Notifications>
23
- </Styles>
24
- </Queries>
15
+ <Recaptcha>
16
+ <Queries>
17
+ <Styles>
18
+ <Notifications>
19
+ <Setup type={ type }>
20
+ <Suspense fallback={ loading }>
21
+ { children }
22
+ </Suspense>
23
+ </Setup>
24
+ </Notifications>
25
+ </Styles>
26
+ </Queries>
27
+ </Recaptcha>
25
28
  );
26
29
 
27
30
  export default Providers;
@@ -0,0 +1,13 @@
1
+ import { GoogleReCaptchaProvider } from 'react-google-recaptcha-v3';
2
+
3
+ interface Props {
4
+ children: JSX.Element
5
+ }
6
+
7
+ const Recaptcha = ({ children }: Props): JSX.Element => (
8
+ <GoogleReCaptchaProvider reCaptchaKey={ import.meta.env.VITE_RECAPTCHA_KEY }>
9
+ { children }
10
+ </GoogleReCaptchaProvider>
11
+ );
12
+
13
+ export default Recaptcha;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "type": "module",
5
5
  "main": "index.ts"
6
6
  }
package/types/settings.ts CHANGED
@@ -131,6 +131,8 @@ export interface LabelPayments {
131
131
  bkt: boolean
132
132
  stripe: boolean
133
133
  mollie: boolean
134
+ raiffeisen: boolean
135
+ nexi: boolean
134
136
  }
135
137
 
136
138
  devpos: {
@@ -157,6 +159,16 @@ export interface LabelPayments {
157
159
  mollie: {
158
160
  key: string
159
161
  }
162
+
163
+ raiffeisen: {
164
+ client_id: string
165
+ username: string
166
+ password: string
167
+ }
168
+
169
+ nexi: {
170
+ api_key: string
171
+ }
160
172
  }
161
173
 
162
174
  export interface UploadData {
package/types/users.ts CHANGED
@@ -53,6 +53,8 @@ export interface ApiData {
53
53
  devpos: number
54
54
  stripe: number
55
55
  mollie: number
56
+ raiffeisen: number
57
+ nexi: number
56
58
  }
57
59
 
58
60
  export interface SubscribedData {