@licklist/design 0.71.5-dev.1 → 0.71.5-dev.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/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -0
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.js +4 -3
- package/dist/product-set/product/advanced-options/AdvancedOptions.js +1 -0
- package/dist/snippet/snippet-template/preview/Preview.js +1 -0
- package/package.json +6 -6
- package/src/iframe/ryft/RyftPaymentForm.tsx +10 -8
- package/yarn.lock +32 -51
|
@@ -64,6 +64,7 @@ import '@tanstack/react-table';
|
|
|
64
64
|
import '../../../../../iframe/payment/order-items-table/hooks/useTableData.js';
|
|
65
65
|
import '@licklist/plugins/dist/context/payment/PaymentSessionContext';
|
|
66
66
|
import 'react-bootstrap/Alert';
|
|
67
|
+
import '@licklist/core/dist/DataMapper/Order/PaymentSessionOrderDataMapper';
|
|
67
68
|
import '@licklist/plugins/dist/hooks/Ryft/useRyftPayment';
|
|
68
69
|
import '@licklist/plugins/dist';
|
|
69
70
|
import '../../../../../iframe/order-process/components/BookingSummary/BookingSummary.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAaA,OAAO,EAEL,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;AAOzD,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,4CAqLtB,CAAA"}
|
|
@@ -5,7 +5,8 @@ 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 {
|
|
8
|
+
import { STATUS_PENDING_ACTION, STATUS_APPROVED, STATUS_CAPTURED, STATUS_PENDING_PAYMENT } from '@licklist/core/dist/DataMapper/Order/PaymentSessionOrderDataMapper';
|
|
9
|
+
import { useRyftPayment } from '@licklist/plugins/dist/hooks/Ryft/useRyftPayment';
|
|
9
10
|
import '../../static/index.js';
|
|
10
11
|
import { injectComponentsInRyftForm } from './utils/ryft-form.js';
|
|
11
12
|
import { ButtonLoader } from '../../static/loader/ButtonLoader.js';
|
|
@@ -256,7 +257,7 @@ var RyftPaymentForm = function(param) {
|
|
|
256
257
|
setRyftError('unknown_error');
|
|
257
258
|
}
|
|
258
259
|
if ('requiredAction' in paymentSession) {
|
|
259
|
-
if (paymentSession.status !==
|
|
260
|
+
if (paymentSession.status !== STATUS_PENDING_ACTION || !((_paymentSession_requiredAction = paymentSession.requiredAction) === null || _paymentSession_requiredAction === void 0 ? void 0 : _paymentSession_requiredAction.url)) {
|
|
260
261
|
redirectOnFailAttempt(paymentSession);
|
|
261
262
|
return [
|
|
262
263
|
2
|
|
@@ -265,7 +266,7 @@ var RyftPaymentForm = function(param) {
|
|
|
265
266
|
window.location.href = paymentSession.requiredAction.url;
|
|
266
267
|
setReferrerBeforePayment();
|
|
267
268
|
}
|
|
268
|
-
if (paymentSession.status ===
|
|
269
|
+
if (paymentSession.status === STATUS_APPROVED || paymentSession.status === STATUS_CAPTURED || paymentSession.status === STATUS_PENDING_PAYMENT) {
|
|
269
270
|
redirectOnFailAttempt(paymentSession);
|
|
270
271
|
return [
|
|
271
272
|
2
|
|
@@ -46,6 +46,7 @@ import '@tanstack/react-table';
|
|
|
46
46
|
import '../../../iframe/payment/order-items-table/hooks/useTableData.js';
|
|
47
47
|
import '@licklist/plugins/dist/context/payment/PaymentSessionContext';
|
|
48
48
|
import 'react-bootstrap/Alert';
|
|
49
|
+
import '@licklist/core/dist/DataMapper/Order/PaymentSessionOrderDataMapper';
|
|
49
50
|
import '@licklist/plugins/dist/hooks/Ryft/useRyftPayment';
|
|
50
51
|
import '@licklist/plugins/dist';
|
|
51
52
|
import '../../../iframe/order-process/components/BookingSummary/BookingSummary.js';
|
|
@@ -46,6 +46,7 @@ import '@licklist/plugins/dist/context/payment/PaymentSessionContext';
|
|
|
46
46
|
import '@licklist/core/dist/Config';
|
|
47
47
|
import 'react-hook-form';
|
|
48
48
|
import 'react-bootstrap/Alert';
|
|
49
|
+
import '@licklist/core/dist/DataMapper/Order/PaymentSessionOrderDataMapper';
|
|
49
50
|
import '@licklist/plugins/dist/hooks/Ryft/useRyftPayment';
|
|
50
51
|
import '@licklist/plugins/dist';
|
|
51
52
|
import { BookingSummary } from '../../../iframe/order-process/components/BookingSummary/BookingSummary.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.71.5-dev.
|
|
3
|
+
"version": "0.71.5-dev.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.31.
|
|
45
|
+
"@licklist/core": "0.31.2-dev.2",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.
|
|
47
|
+
"@licklist/plugins": "0.35.0-dev.0",
|
|
48
48
|
"lodash": "4.17.21",
|
|
49
49
|
"luxon": "3.5.0",
|
|
50
50
|
"react": "17.0.2",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"@dnd-kit/utilities": "2.0.0",
|
|
62
62
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
63
63
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
64
|
-
"@licklist/core": "0.31.2-dev.
|
|
64
|
+
"@licklist/core": "0.31.2-dev.2",
|
|
65
65
|
"@licklist/eslint-config": "0.5.6",
|
|
66
|
-
"@licklist/plugins": "0.
|
|
66
|
+
"@licklist/plugins": "0.35.0-dev.0",
|
|
67
67
|
"@mantine/core": "6.0.22",
|
|
68
68
|
"@mantine/hooks": "6.0.22",
|
|
69
69
|
"@mdx-js/react": "1.6.22",
|
|
@@ -208,4 +208,4 @@
|
|
|
208
208
|
"yarn": "4.4.0"
|
|
209
209
|
},
|
|
210
210
|
"stableVersion": "0.71.4-dev.1"
|
|
211
|
-
}
|
|
211
|
+
}
|
|
@@ -5,12 +5,14 @@ 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 {
|
|
9
|
+
STATUS_APPROVED,
|
|
10
|
+
STATUS_CAPTURED,
|
|
11
|
+
STATUS_PENDING_ACTION,
|
|
12
|
+
STATUS_PENDING_PAYMENT,
|
|
13
|
+
} from '@licklist/core/dist/DataMapper/Order/PaymentSessionOrderDataMapper'
|
|
8
14
|
import {
|
|
9
15
|
useRyftPayment,
|
|
10
|
-
RYFT_STATUS_APPROVED,
|
|
11
|
-
RYFT_STATUS_CAPTURED,
|
|
12
|
-
RYFT_STATUS_PENDING_ACTION,
|
|
13
|
-
RYFT_STATUS_PENDING_PAYMENT,
|
|
14
16
|
AttemptPaymentResponse,
|
|
15
17
|
} from '@licklist/plugins/dist/hooks/Ryft/useRyftPayment'
|
|
16
18
|
import { ProviderPaymentSettings } from '@licklist/core/dist/DataMapper/Setting/ProviderPaymentSettingsDataMapper'
|
|
@@ -105,7 +107,7 @@ export const RyftPaymentForm = ({
|
|
|
105
107
|
|
|
106
108
|
if ('requiredAction' in paymentSession) {
|
|
107
109
|
if (
|
|
108
|
-
paymentSession.status !==
|
|
110
|
+
paymentSession.status !== STATUS_PENDING_ACTION ||
|
|
109
111
|
!paymentSession.requiredAction?.url
|
|
110
112
|
) {
|
|
111
113
|
redirectOnFailAttempt(paymentSession)
|
|
@@ -117,9 +119,9 @@ export const RyftPaymentForm = ({
|
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
if (
|
|
120
|
-
paymentSession.status ===
|
|
121
|
-
paymentSession.status ===
|
|
122
|
-
paymentSession.status ===
|
|
122
|
+
paymentSession.status === STATUS_APPROVED ||
|
|
123
|
+
paymentSession.status === STATUS_CAPTURED ||
|
|
124
|
+
paymentSession.status === STATUS_PENDING_PAYMENT
|
|
123
125
|
) {
|
|
124
126
|
redirectOnFailAttempt(paymentSession)
|
|
125
127
|
return
|
package/yarn.lock
CHANGED
|
@@ -2466,9 +2466,9 @@ __metadata:
|
|
|
2466
2466
|
languageName: node
|
|
2467
2467
|
linkType: hard
|
|
2468
2468
|
|
|
2469
|
-
"@licklist/core@npm:0.31.
|
|
2470
|
-
version: 0.31.
|
|
2471
|
-
resolution: "@licklist/core@npm:0.31.
|
|
2469
|
+
"@licklist/core@npm:0.31.2-dev.2":
|
|
2470
|
+
version: 0.31.2-dev.2
|
|
2471
|
+
resolution: "@licklist/core@npm:0.31.2-dev.2"
|
|
2472
2472
|
dependencies:
|
|
2473
2473
|
"@sentry/browser": "npm:6.2.0"
|
|
2474
2474
|
axios: "npm:0.26.0"
|
|
@@ -2490,35 +2490,7 @@ __metadata:
|
|
|
2490
2490
|
react-i18next: 11.8.8
|
|
2491
2491
|
react-intl: 6.6.8
|
|
2492
2492
|
zustand: 3.7.2
|
|
2493
|
-
checksum: 10c0/
|
|
2494
|
-
languageName: node
|
|
2495
|
-
linkType: hard
|
|
2496
|
-
|
|
2497
|
-
"@licklist/core@npm:0.31.2-dev.1":
|
|
2498
|
-
version: 0.31.2-dev.1
|
|
2499
|
-
resolution: "@licklist/core@npm:0.31.2-dev.1"
|
|
2500
|
-
dependencies:
|
|
2501
|
-
"@sentry/browser": "npm:6.2.0"
|
|
2502
|
-
axios: "npm:0.26.0"
|
|
2503
|
-
i18next: "npm:19.4.5"
|
|
2504
|
-
luxon: "npm:3.5.0"
|
|
2505
|
-
react: "npm:17.0.2"
|
|
2506
|
-
react-dom: "npm:17.0.2"
|
|
2507
|
-
react-i18next: "npm:11.8.8"
|
|
2508
|
-
react-intl: "npm:6.6.8"
|
|
2509
|
-
uuid: "npm:9.0.0"
|
|
2510
|
-
wait-for-expect: "npm:3.0.2"
|
|
2511
|
-
zustand: "npm:3.7.2"
|
|
2512
|
-
peerDependencies:
|
|
2513
|
-
"@licklist/eslint-config": 0.5.6
|
|
2514
|
-
axios: 0.26.0
|
|
2515
|
-
luxon: 3.5.0
|
|
2516
|
-
react: 17.0.2
|
|
2517
|
-
react-dom: 17.0.2
|
|
2518
|
-
react-i18next: 11.8.8
|
|
2519
|
-
react-intl: 6.6.8
|
|
2520
|
-
zustand: 3.7.2
|
|
2521
|
-
checksum: 10c0/bdc37fb4183f6df0c1d907b7f1c6300e4b62ba511d660dd9c8612b32692cca1c139752cfb2cca12bda00bafde3c4487301e7b6fa349aecfa2c67d3afb44600f8
|
|
2493
|
+
checksum: 10c0/9418d29a7e272b35d14607ddba20a8fb892707f5e8672f3e0088ba5ca4fa454d88b25ee8a9c947c628c384e171dd51edadff43c8ff3c8c0ad7a293cb3a5f6e78
|
|
2522
2494
|
languageName: node
|
|
2523
2495
|
linkType: hard
|
|
2524
2496
|
|
|
@@ -2533,9 +2505,9 @@ __metadata:
|
|
|
2533
2505
|
"@dnd-kit/utilities": "npm:2.0.0"
|
|
2534
2506
|
"@fortawesome/fontawesome-svg-core": "npm:1.2.34"
|
|
2535
2507
|
"@fortawesome/free-solid-svg-icons": "npm:5.15.2"
|
|
2536
|
-
"@licklist/core": "npm:0.31.2-dev.
|
|
2508
|
+
"@licklist/core": "npm:0.31.2-dev.2"
|
|
2537
2509
|
"@licklist/eslint-config": "npm:0.5.6"
|
|
2538
|
-
"@licklist/plugins": "npm:0.
|
|
2510
|
+
"@licklist/plugins": "npm:0.35.0-dev.0"
|
|
2539
2511
|
"@mantine/core": "npm:6.0.22"
|
|
2540
2512
|
"@mantine/hooks": "npm:6.0.22"
|
|
2541
2513
|
"@mdx-js/react": "npm:1.6.22"
|
|
@@ -2664,9 +2636,9 @@ __metadata:
|
|
|
2664
2636
|
vite-plugin-svgr: "npm:4.2.0"
|
|
2665
2637
|
vite-tsconfig-paths: "npm:5.0.1"
|
|
2666
2638
|
peerDependencies:
|
|
2667
|
-
"@licklist/core": 0.31.
|
|
2639
|
+
"@licklist/core": 0.31.2-dev.2
|
|
2668
2640
|
"@licklist/eslint-config": 0.5.6
|
|
2669
|
-
"@licklist/plugins": 0.
|
|
2641
|
+
"@licklist/plugins": 0.35.0-dev.0
|
|
2670
2642
|
lodash: 4.17.21
|
|
2671
2643
|
luxon: 3.5.0
|
|
2672
2644
|
react: 17.0.2
|
|
@@ -2696,11 +2668,11 @@ __metadata:
|
|
|
2696
2668
|
languageName: node
|
|
2697
2669
|
linkType: hard
|
|
2698
2670
|
|
|
2699
|
-
"@licklist/plugins@npm:0.
|
|
2700
|
-
version: 0.
|
|
2701
|
-
resolution: "@licklist/plugins@npm:0.
|
|
2671
|
+
"@licklist/plugins@npm:0.35.0-dev.0":
|
|
2672
|
+
version: 0.35.0-dev.0
|
|
2673
|
+
resolution: "@licklist/plugins@npm:0.35.0-dev.0"
|
|
2702
2674
|
dependencies:
|
|
2703
|
-
"@licklist/core": "npm:0.31.
|
|
2675
|
+
"@licklist/core": "npm:0.31.2-dev.2"
|
|
2704
2676
|
axios: "npm:0.26.0"
|
|
2705
2677
|
history: "npm:4.10.1"
|
|
2706
2678
|
laravel-echo: "npm:1.15.1"
|
|
@@ -2720,7 +2692,7 @@ __metadata:
|
|
|
2720
2692
|
rrule: "npm:2.6.8"
|
|
2721
2693
|
use-debounce: "npm:7.0.1"
|
|
2722
2694
|
peerDependencies:
|
|
2723
|
-
"@licklist/core": 0.31.
|
|
2695
|
+
"@licklist/core": 0.31.2-dev.2
|
|
2724
2696
|
"@licklist/eslint-config": 0.5.6
|
|
2725
2697
|
axios: 0.26.0
|
|
2726
2698
|
lodash: 4.17.21
|
|
@@ -2732,7 +2704,7 @@ __metadata:
|
|
|
2732
2704
|
react-loader: 2.4.7
|
|
2733
2705
|
react-query: 3.34.12
|
|
2734
2706
|
react-router-dom: 5.2.0
|
|
2735
|
-
checksum: 10c0/
|
|
2707
|
+
checksum: 10c0/cabf52f8842e2f85236671abba6a106c654dda6c64019287c9e9c6fea6693eabac961227f97d38719738db0cde43f8cd9c855f35eb44d9963d6c2aa44bad0eaf
|
|
2736
2708
|
languageName: node
|
|
2737
2709
|
linkType: hard
|
|
2738
2710
|
|
|
@@ -8244,12 +8216,12 @@ __metadata:
|
|
|
8244
8216
|
linkType: hard
|
|
8245
8217
|
|
|
8246
8218
|
"cipher-base@npm:^1.0.0, cipher-base@npm:^1.0.1, cipher-base@npm:^1.0.3":
|
|
8247
|
-
version: 1.0.
|
|
8248
|
-
resolution: "cipher-base@npm:1.0.
|
|
8219
|
+
version: 1.0.5
|
|
8220
|
+
resolution: "cipher-base@npm:1.0.5"
|
|
8249
8221
|
dependencies:
|
|
8250
|
-
inherits: "npm:^2.0.
|
|
8251
|
-
safe-buffer: "npm:^5.
|
|
8252
|
-
checksum: 10c0/
|
|
8222
|
+
inherits: "npm:^2.0.4"
|
|
8223
|
+
safe-buffer: "npm:^5.2.1"
|
|
8224
|
+
checksum: 10c0/064a7f9323ba5416c8f4ab98bd0fca7234f05b39b0784b8131429e84ac5c735e7fc9f87e2bd39b278a0121d833ca20fa9f5b4dd11fbe289191e7d29471bb3f5b
|
|
8253
8225
|
languageName: node
|
|
8254
8226
|
linkType: hard
|
|
8255
8227
|
|
|
@@ -8911,13 +8883,13 @@ __metadata:
|
|
|
8911
8883
|
linkType: hard
|
|
8912
8884
|
|
|
8913
8885
|
"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3":
|
|
8914
|
-
version: 7.0.
|
|
8915
|
-
resolution: "cross-spawn@npm:7.0.
|
|
8886
|
+
version: 7.0.6
|
|
8887
|
+
resolution: "cross-spawn@npm:7.0.6"
|
|
8916
8888
|
dependencies:
|
|
8917
8889
|
path-key: "npm:^3.1.0"
|
|
8918
8890
|
shebang-command: "npm:^2.0.0"
|
|
8919
8891
|
which: "npm:^2.0.1"
|
|
8920
|
-
checksum: 10c0/
|
|
8892
|
+
checksum: 10c0/053ea8b2135caff68a9e81470e845613e374e7309a47731e81639de3eaeb90c3d01af0e0b44d2ab9d50b43467223b88567dfeb3262db942dc063b9976718ffc1
|
|
8921
8893
|
languageName: node
|
|
8922
8894
|
linkType: hard
|
|
8923
8895
|
|
|
@@ -17040,7 +17012,7 @@ __metadata:
|
|
|
17040
17012
|
languageName: node
|
|
17041
17013
|
linkType: hard
|
|
17042
17014
|
|
|
17043
|
-
"qs@npm:6.13.0
|
|
17015
|
+
"qs@npm:6.13.0":
|
|
17044
17016
|
version: 6.13.0
|
|
17045
17017
|
resolution: "qs@npm:6.13.0"
|
|
17046
17018
|
dependencies:
|
|
@@ -17049,6 +17021,15 @@ __metadata:
|
|
|
17049
17021
|
languageName: node
|
|
17050
17022
|
linkType: hard
|
|
17051
17023
|
|
|
17024
|
+
"qs@npm:^6.10.0, qs@npm:^6.12.3":
|
|
17025
|
+
version: 6.13.1
|
|
17026
|
+
resolution: "qs@npm:6.13.1"
|
|
17027
|
+
dependencies:
|
|
17028
|
+
side-channel: "npm:^1.0.6"
|
|
17029
|
+
checksum: 10c0/5ef527c0d62ffca5501322f0832d800ddc78eeb00da3b906f1b260ca0492721f8cdc13ee4b8fd8ac314a6ec37b948798c7b603ccc167e954088df392092f160c
|
|
17030
|
+
languageName: node
|
|
17031
|
+
linkType: hard
|
|
17032
|
+
|
|
17052
17033
|
"querystring-es3@npm:^0.2.0":
|
|
17053
17034
|
version: 0.2.1
|
|
17054
17035
|
resolution: "querystring-es3@npm:0.2.1"
|