@gr4vy/secure-fields-react 1.19.0 → 1.19.1
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/CHANGELOG.md +17 -0
- package/README.md +3 -3
- package/lib/components/CardForm/CardForm.d.ts +1 -1
- package/lib/components/CardNumber/CardNumber.d.ts +1 -2
- package/lib/components/ClickToPay/ClickToPay.d.ts +1 -2
- package/lib/components/ClickToPay/ClickToPaySignIn.d.ts +1 -1
- package/lib/components/ExpiryDate/ExpiryDate.d.ts +1 -2
- package/lib/components/Field/Field.d.ts +1 -2
- package/lib/components/SecureFields/SecureFields.d.ts +1 -1
- package/lib/components/SecurityCode/SecurityCode.d.ts +1 -2
- package/lib/hooks/use-secure-fields.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# v1.19.1 (Wed Jul 24 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- fix: Correct import syntax in docs [#656](https://github.com/gr4vy/secure-fields/pull/656) ([@cbetta](https://github.com/cbetta))
|
|
6
|
+
|
|
7
|
+
#### 🏠 Internal
|
|
8
|
+
|
|
9
|
+
- chore(dev-deps): update dependency typescript-transform-paths to ^3.4.7 [#604](https://github.com/gr4vy/secure-fields/pull/604) ([@renovate[bot]](https://github.com/renovate[bot]))
|
|
10
|
+
|
|
11
|
+
#### Authors: 2
|
|
12
|
+
|
|
13
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
|
14
|
+
- Cristiano Betta ([@cbetta](https://github.com/cbetta))
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
1
18
|
# v1.19.0 (Wed Feb 07 2024)
|
|
2
19
|
|
|
3
20
|
#### 🚀 Enhancement
|
package/README.md
CHANGED
|
@@ -25,8 +25,8 @@ To use Secure Fields, import the `SecureFields` Provider component and wrap your
|
|
|
25
25
|
require('@gr4vy/secure-fields-react/lib/style.css') // default styles
|
|
26
26
|
// import '@gr4vy/secure-fields-react/lib/style.css'
|
|
27
27
|
|
|
28
|
-
const { SecureFields } = require(
|
|
29
|
-
// import { SecureFields } from
|
|
28
|
+
const { SecureFields } = require("@gr4vy/secure-fields-react")
|
|
29
|
+
// import { SecureFields } from "@gr4vy/secure-fields-react"
|
|
30
30
|
|
|
31
31
|
<SecureFields
|
|
32
32
|
gr4vyId='[GR4VY_ID]'
|
|
@@ -78,7 +78,7 @@ const {
|
|
|
78
78
|
// CardNumber,
|
|
79
79
|
// ExpiryDate,
|
|
80
80
|
// SecurityCode
|
|
81
|
-
// } from
|
|
81
|
+
// } from "@gr4vy/secure-fields-react"
|
|
82
82
|
|
|
83
83
|
const Form = () => {
|
|
84
84
|
const { secureFields } = useSecureFields()
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { ClickToPayComponentProps } from "../../types";
|
|
3
|
-
export declare const CardForm: ({ children, id: _, style, onVisibilityChange, ...rest }: PropsWithChildren<ClickToPayComponentProps>) => JSX.Element;
|
|
3
|
+
export declare const CardForm: ({ children, id: _, style, onVisibilityChange, ...rest }: PropsWithChildren<ClickToPayComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Field as FieldProps } from "../../types";
|
|
3
|
-
export declare const CardNumber: (props: Omit<FieldProps, 'type'>) => JSX.Element;
|
|
2
|
+
export declare const CardNumber: (props: Omit<FieldProps, 'type'>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { ClickToPayComponentProps } from "../../types";
|
|
3
|
-
export declare const ClickToPaySignIn: ({ children, id: _, style, onVisibilityChange, ...rest }: PropsWithChildren<ClickToPayComponentProps>) => JSX.Element;
|
|
3
|
+
export declare const ClickToPaySignIn: ({ children, id: _, style, onVisibilityChange, ...rest }: PropsWithChildren<ClickToPayComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Field as FieldProps } from "../../types";
|
|
3
|
-
export declare const ExpiryDate: (props: Omit<FieldProps, 'type'>) => JSX.Element;
|
|
2
|
+
export declare const ExpiryDate: (props: Omit<FieldProps, 'type'>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,4 +3,4 @@ import { Config } from "../../types";
|
|
|
3
3
|
export type Props = {
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
} & Config;
|
|
6
|
-
export declare const SecureFields: ({ children, ...config }: Props) => JSX.Element;
|
|
6
|
+
export declare const SecureFields: ({ children, ...config }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Field as FieldProps } from "../../types";
|
|
3
|
-
export declare const SecurityCode: (props: Omit<FieldProps, 'type'>) => JSX.Element;
|
|
2
|
+
export declare const SecurityCode: (props: Omit<FieldProps, 'type'>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,7 +7,7 @@ export declare const SecureFieldsContext: import("react").Context<{
|
|
|
7
7
|
clickToPay?: ClickToPayInstance;
|
|
8
8
|
setClickToPay?: Dispatch<ClickToPayInstance>;
|
|
9
9
|
}>;
|
|
10
|
-
export declare const SecureFieldsProvider: ({ children, ...config }: PropsWithChildren<Config>) => JSX.Element;
|
|
10
|
+
export declare const SecureFieldsProvider: ({ children, ...config }: PropsWithChildren<Config>) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export declare const useSecureFields: () => {
|
|
12
12
|
secureFields: SecureFields;
|
|
13
13
|
debug: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gr4vy/secure-fields-react",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.1",
|
|
4
4
|
"description": "Gr4vy-hosted secure fields offering advanced theming, PCI compliance, event handling, and more.",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"types": "lib/index",
|
|
@@ -41,17 +41,17 @@
|
|
|
41
41
|
"react-dom": ">=17.0.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@gr4vy/secure-fields": "^1.19.
|
|
44
|
+
"@gr4vy/secure-fields": "^1.19.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@testing-library/react-hooks": "^8.0.1",
|
|
48
48
|
"react": "^17.0.2",
|
|
49
49
|
"react-dom": "^17.0.2",
|
|
50
50
|
"ts-patch": "^2.1.0",
|
|
51
|
-
"typescript-transform-paths": "^3.4.
|
|
51
|
+
"typescript-transform-paths": "^3.4.7"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "2cd397b1c2f7e97b6be56a130fb66d169df4eb2c"
|
|
57
57
|
}
|