@parafin/react 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  ## @parafin/react
2
2
 
3
- Please refer to the [Parafin docs](https://docs.parafin.com/capital/present-offers/elements/reference) for more details.
3
+ Please refer to the [Parafin docs](https://docs.parafin.com/capital/present-offers/embedded/reference) for more details.
package/index.tsx CHANGED
@@ -13,6 +13,7 @@ type OptInFields = {
13
13
  }[]
14
14
  routingNumber?: string
15
15
  accountNumberLastFour: string
16
+ bankAccountCurrencyCode?: string
16
17
  email: string
17
18
  phoneNumber: string
18
19
  address: {
@@ -36,7 +37,7 @@ const ParafinWidget = (props: {
36
37
  try {
37
38
  const iframeRef = useRef<HTMLIFrameElement>(null)
38
39
  const [iframeKey, setIframeKey] = useState(0)
39
- const [iframeHeight, setIframeHeight] = useState('200px')
40
+ const [iframeHeight, setIframeHeight] = useState('258px')
40
41
  const [borderColor, setBorderColor] = useState('#E8E8E8')
41
42
  const [borderRadius, setBorderRadius] = useState('16px')
42
43
 
@@ -110,6 +111,7 @@ const ParafinWidget = (props: {
110
111
  backgroundColor: '#fff',
111
112
  border: `1px solid ${borderColor}`,
112
113
  borderRadius: borderRadius,
114
+ transition: 'border 0.2s, border-radius 0.2s',
113
115
  boxSizing: 'border-box',
114
116
  }}
115
117
  />
package/out/index.d.ts CHANGED
@@ -10,6 +10,7 @@ type OptInFields = {
10
10
  }[];
11
11
  routingNumber?: string;
12
12
  accountNumberLastFour: string;
13
+ bankAccountCurrencyCode?: string;
13
14
  email: string;
14
15
  phoneNumber: string;
15
16
  address: {
package/out/index.js CHANGED
@@ -5,7 +5,7 @@ const ParafinWidget = (props) => {
5
5
  try {
6
6
  const iframeRef = useRef(null);
7
7
  const [iframeKey, setIframeKey] = useState(0);
8
- const [iframeHeight, setIframeHeight] = useState('200px');
8
+ const [iframeHeight, setIframeHeight] = useState('258px');
9
9
  const [borderColor, setBorderColor] = useState('#E8E8E8');
10
10
  const [borderRadius, setBorderRadius] = useState('16px');
11
11
  const getBaseUrl = () => {
@@ -68,6 +68,7 @@ const ParafinWidget = (props) => {
68
68
  backgroundColor: '#fff',
69
69
  border: `1px solid ${borderColor}`,
70
70
  borderRadius: borderRadius,
71
+ transition: 'border 0.2s, border-radius 0.2s',
71
72
  boxSizing: 'border-box',
72
73
  } }, iframeKey));
73
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parafin/react",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Parafin React widget",
5
5
  "author": "Parafin (https://www.parafin.com)",
6
6
  "module": "out/index.js",
@@ -14,7 +14,7 @@
14
14
  "typescript": "^4.9.5"
15
15
  },
16
16
  "dependencies": {
17
- "@parafin/core": "^1.0.2",
17
+ "@parafin/core": "^1.0.3",
18
18
  "react": "^18.2.0"
19
19
  }
20
20
  }