@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 +14 -11
- package/Recaptcha/Recaptcha.tsx +13 -0
- package/package.json +1 -1
- package/types/settings.ts +12 -0
- package/types/users.ts +2 -0
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
|
-
<
|
|
15
|
-
<
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
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 {
|