@licklist/design 0.70.2 → 0.70.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAOA,OAAO,
|
|
1
|
+
{"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAOA,OAAO,EAML,sBAAsB,EACvB,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0EAA0E,CAAA;AAKlH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAW/C,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAEzD,MAAM,WAAW,oBAAoB;IAEnC,SAAS,EAAE,GAAG,CAAA;IACd,eAAe,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAA;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,CACR,SAAS,EAAE,MAAM,IAAI,EACrB,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,KAChC,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAC/C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;CAClD;AAED,eAAO,MAAM,eAAe,8JAUzB,oBAAoB,4CA+KtB,CAAA"}
|
|
@@ -5,7 +5,7 @@ import { useForm } from 'react-hook-form';
|
|
|
5
5
|
import Button from 'react-bootstrap/Button';
|
|
6
6
|
import { useHistory } from 'react-router-dom';
|
|
7
7
|
import Alert from 'react-bootstrap/Alert';
|
|
8
|
-
import { useRyftPayment, RYFT_STATUS_PENDING_ACTION, RYFT_STATUS_APPROVED, RYFT_STATUS_CAPTURED } from '@licklist/plugins/dist/hooks/Ryft/useRyftPayment';
|
|
8
|
+
import { useRyftPayment, RYFT_STATUS_PENDING_ACTION, RYFT_STATUS_APPROVED, RYFT_STATUS_CAPTURED, RYFT_STATUS_PENDING_PAYMENT } from '@licklist/plugins/dist/hooks/Ryft/useRyftPayment';
|
|
9
9
|
import '../../static/index.js';
|
|
10
10
|
import { injectComponentsInRyftForm } from './utils/ryft-form.js';
|
|
11
11
|
import { ButtonLoader } from '../../static/loader/ButtonLoader.js';
|
|
@@ -257,7 +257,7 @@ var RyftPaymentForm = function(param) {
|
|
|
257
257
|
window.location.href = paymentSession.requiredAction.url;
|
|
258
258
|
setReferrerBeforePayment();
|
|
259
259
|
}
|
|
260
|
-
if (paymentSession.status === RYFT_STATUS_APPROVED || paymentSession.status === RYFT_STATUS_CAPTURED) {
|
|
260
|
+
if (paymentSession.status === RYFT_STATUS_APPROVED || paymentSession.status === RYFT_STATUS_CAPTURED || paymentSession.status === RYFT_STATUS_PENDING_PAYMENT) {
|
|
261
261
|
redirectOnFailAttempt(paymentSession);
|
|
262
262
|
return [
|
|
263
263
|
2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@licklist/core": "0.30.3",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.33.
|
|
47
|
+
"@licklist/plugins": "0.33.6",
|
|
48
48
|
"lodash": "4.17.21",
|
|
49
49
|
"luxon": "3.5.0",
|
|
50
50
|
"react": "17.0.2",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
64
64
|
"@licklist/core": "0.30.3",
|
|
65
65
|
"@licklist/eslint-config": "0.5.6",
|
|
66
|
-
"@licklist/plugins": "0.33.
|
|
66
|
+
"@licklist/plugins": "0.33.6",
|
|
67
67
|
"@mantine/core": "6.0.22",
|
|
68
68
|
"@mantine/hooks": "6.0.22",
|
|
69
69
|
"@mdx-js/react": "1.6.22",
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
RYFT_STATUS_APPROVED,
|
|
11
11
|
RYFT_STATUS_CAPTURED,
|
|
12
12
|
RYFT_STATUS_PENDING_ACTION,
|
|
13
|
+
RYFT_STATUS_PENDING_PAYMENT,
|
|
13
14
|
AttemptPaymentResponse,
|
|
14
15
|
} from '@licklist/plugins/dist/hooks/Ryft/useRyftPayment'
|
|
15
16
|
import { ProviderPaymentSettings } from '@licklist/core/dist/DataMapper/Setting/ProviderPaymentSettingsDataMapper'
|
|
@@ -112,7 +113,8 @@ export const RyftPaymentForm = ({
|
|
|
112
113
|
|
|
113
114
|
if (
|
|
114
115
|
paymentSession.status === RYFT_STATUS_APPROVED ||
|
|
115
|
-
paymentSession.status === RYFT_STATUS_CAPTURED
|
|
116
|
+
paymentSession.status === RYFT_STATUS_CAPTURED ||
|
|
117
|
+
paymentSession.status === RYFT_STATUS_PENDING_PAYMENT
|
|
116
118
|
) {
|
|
117
119
|
redirectOnFailAttempt(paymentSession)
|
|
118
120
|
return
|
|
@@ -219,12 +221,9 @@ export const RyftPaymentForm = ({
|
|
|
219
221
|
onSubmit={methods.handleSubmit(handleSubmit)}
|
|
220
222
|
className='ryft-payment-form'
|
|
221
223
|
>
|
|
222
|
-
<div className='form-disable-box' id=
|
|
224
|
+
<div className='form-disable-box' id='form-disable-box' />
|
|
223
225
|
<div className='submit-button-wrapper mt-4 p-1'>
|
|
224
|
-
<Button
|
|
225
|
-
type='submit'
|
|
226
|
-
disabled={isBtnDisabled || !isValid}
|
|
227
|
-
>
|
|
226
|
+
<Button type='submit' disabled={isBtnDisabled || !isValid}>
|
|
228
227
|
{isBtnDisabled && <ButtonLoader />}
|
|
229
228
|
{t('Design:buyNow')}
|
|
230
229
|
</Button>
|
package/yarn.lock
CHANGED
|
@@ -2517,7 +2517,7 @@ __metadata:
|
|
|
2517
2517
|
"@fortawesome/free-solid-svg-icons": "npm:5.15.2"
|
|
2518
2518
|
"@licklist/core": "npm:0.30.3"
|
|
2519
2519
|
"@licklist/eslint-config": "npm:0.5.6"
|
|
2520
|
-
"@licklist/plugins": "npm:0.33.
|
|
2520
|
+
"@licklist/plugins": "npm:0.33.6"
|
|
2521
2521
|
"@mantine/core": "npm:6.0.22"
|
|
2522
2522
|
"@mantine/hooks": "npm:6.0.22"
|
|
2523
2523
|
"@mdx-js/react": "npm:1.6.22"
|
|
@@ -2648,7 +2648,7 @@ __metadata:
|
|
|
2648
2648
|
peerDependencies:
|
|
2649
2649
|
"@licklist/core": 0.30.3
|
|
2650
2650
|
"@licklist/eslint-config": 0.5.6
|
|
2651
|
-
"@licklist/plugins": 0.33.
|
|
2651
|
+
"@licklist/plugins": 0.33.6
|
|
2652
2652
|
lodash: 4.17.21
|
|
2653
2653
|
luxon: 3.5.0
|
|
2654
2654
|
react: 17.0.2
|
|
@@ -2678,9 +2678,9 @@ __metadata:
|
|
|
2678
2678
|
languageName: node
|
|
2679
2679
|
linkType: hard
|
|
2680
2680
|
|
|
2681
|
-
"@licklist/plugins@npm:0.33.
|
|
2682
|
-
version: 0.33.
|
|
2683
|
-
resolution: "@licklist/plugins@npm:0.33.
|
|
2681
|
+
"@licklist/plugins@npm:0.33.6":
|
|
2682
|
+
version: 0.33.6
|
|
2683
|
+
resolution: "@licklist/plugins@npm:0.33.6"
|
|
2684
2684
|
dependencies:
|
|
2685
2685
|
"@licklist/core": "npm:0.30.1"
|
|
2686
2686
|
axios: "npm:0.26.0"
|
|
@@ -2714,7 +2714,7 @@ __metadata:
|
|
|
2714
2714
|
react-loader: 2.4.7
|
|
2715
2715
|
react-query: 3.34.12
|
|
2716
2716
|
react-router-dom: 5.2.0
|
|
2717
|
-
checksum: 10c0/
|
|
2717
|
+
checksum: 10c0/e22d0c52eefb6e256a45062343700676b62839e440759ba1cdfe17c8a6320adf3f329adf2e1929cb63b0306ad01d99bb69a878717ec25db6027847d39f6dae67
|
|
2718
2718
|
languageName: node
|
|
2719
2719
|
linkType: hard
|
|
2720
2720
|
|
|
@@ -16707,13 +16707,13 @@ __metadata:
|
|
|
16707
16707
|
linkType: hard
|
|
16708
16708
|
|
|
16709
16709
|
"prosemirror-commands@npm:^1.0.0, prosemirror-commands@npm:^1.2.1, prosemirror-commands@npm:^1.3.1":
|
|
16710
|
-
version: 1.6.
|
|
16711
|
-
resolution: "prosemirror-commands@npm:1.6.
|
|
16710
|
+
version: 1.6.2
|
|
16711
|
+
resolution: "prosemirror-commands@npm:1.6.2"
|
|
16712
16712
|
dependencies:
|
|
16713
16713
|
prosemirror-model: "npm:^1.0.0"
|
|
16714
16714
|
prosemirror-state: "npm:^1.0.0"
|
|
16715
16715
|
prosemirror-transform: "npm:^1.10.2"
|
|
16716
|
-
checksum: 10c0/
|
|
16716
|
+
checksum: 10c0/3504d884d40aeb1f05857b562fe73f60cac2cac6b25b8127f03b40a795303090117cafbaefff399109b5ef3945404c8cdb118586a48ff74aeda927c985993613
|
|
16717
16717
|
languageName: node
|
|
16718
16718
|
linkType: hard
|
|
16719
16719
|
|