@payrails/web-sdk 5.47.0 → 5.48.0-RC-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/index.js +4 -4
- package/index.mjs +4 -4
- package/package.json +2 -7
- package/payrails-styles.css +95 -2
- package/payrails.d.ts +1223 -1153
- package/payrails.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payrails/web-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.48.0-RC-1",
|
|
4
4
|
"description": "SDK providing tokenization options on the client for merchants",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "payrails.d.ts",
|
|
@@ -8,12 +8,7 @@
|
|
|
8
8
|
"author": "Payrails GitHub Bot <github@payrails.com>",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"
|
|
12
|
-
"@payrails/web-cse": "1.2.4",
|
|
13
|
-
"@rollup/plugin-html": "2.0.0",
|
|
14
|
-
"@types/applepayjs": "14.0.9",
|
|
15
|
-
"@types/googlepay": "0.7.5",
|
|
16
|
-
"rollup-plugin-import-css": "3.5.8"
|
|
11
|
+
"dompurify": "3.4.10"
|
|
17
12
|
},
|
|
18
13
|
"module": "index.mjs",
|
|
19
14
|
"exports": {
|
package/payrails-styles.css
CHANGED
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
align-items: center;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.payrails-container-wrapper
|
|
9
|
+
.payrails-container-wrapper,
|
|
10
|
+
.payrails-collect-frames-container {
|
|
10
11
|
width: 100%;
|
|
11
12
|
min-height: 90px;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
.with-card-holder .payrails-container-wrapper
|
|
15
|
+
.with-card-holder .payrails-container-wrapper,
|
|
16
|
+
.with-card-holder .payrails-collect-frames-container {
|
|
15
17
|
width: 100%;
|
|
16
18
|
height: min-content;
|
|
17
19
|
min-height: 120px;
|
|
@@ -313,6 +315,26 @@
|
|
|
313
315
|
margin-bottom: 4px;
|
|
314
316
|
}
|
|
315
317
|
|
|
318
|
+
/*
|
|
319
|
+
* When present, visually moves the save-instrument checkbox above the payment
|
|
320
|
+
* button using CSS flex order — without touching the DOM structure.
|
|
321
|
+
* Default (no class): checkbox sits below the button (natural DOM order).
|
|
322
|
+
*/
|
|
323
|
+
.payrails-checkbox-above-button {
|
|
324
|
+
display: flex;
|
|
325
|
+
flex-direction: column;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/* Google Pay / Apple Pay: .payrails-store-instrument is a direct child */
|
|
329
|
+
.payrails-checkbox-above-button > .payrails-store-instrument {
|
|
330
|
+
order: -1;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/* PayPal: checkbox is wrapped inside its own container div */
|
|
334
|
+
.payrails-checkbox-above-button > #payrails-paypal-checkbox-wrapper {
|
|
335
|
+
order: -1;
|
|
336
|
+
}
|
|
337
|
+
|
|
316
338
|
.payrails-address-selector-wrapper {
|
|
317
339
|
display: flex;
|
|
318
340
|
flex-wrap: wrap;
|
|
@@ -838,6 +860,77 @@
|
|
|
838
860
|
}
|
|
839
861
|
}
|
|
840
862
|
|
|
863
|
+
.payrails-order-summary-wrapper {
|
|
864
|
+
display: flex;
|
|
865
|
+
flex-direction: column;
|
|
866
|
+
width: 100%;
|
|
867
|
+
box-sizing: border-box;
|
|
868
|
+
padding: 16px 0;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
.payrails-order-summary-header {
|
|
872
|
+
font-size: 13px;
|
|
873
|
+
font-weight: 600;
|
|
874
|
+
letter-spacing: 0.06em;
|
|
875
|
+
text-transform: uppercase;
|
|
876
|
+
color: #6b7280;
|
|
877
|
+
margin: 0 0 12px 0;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
.payrails-order-summary-row {
|
|
881
|
+
display: flex;
|
|
882
|
+
justify-content: space-between;
|
|
883
|
+
align-items: center;
|
|
884
|
+
padding: 4px 0;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.payrails-order-summary-label {
|
|
888
|
+
font-size: 14px;
|
|
889
|
+
color: #374151;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.payrails-order-summary-amount {
|
|
893
|
+
font-size: 14px;
|
|
894
|
+
color: #111827;
|
|
895
|
+
font-variant-numeric: tabular-nums;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
.payrails-order-summary-total-row {
|
|
899
|
+
display: flex;
|
|
900
|
+
justify-content: space-between;
|
|
901
|
+
align-items: center;
|
|
902
|
+
margin-top: 12px;
|
|
903
|
+
padding: 4px 0;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.payrails-order-summary-total-label {
|
|
907
|
+
font-size: 15px;
|
|
908
|
+
font-weight: 700;
|
|
909
|
+
color: #111827;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.payrails-order-summary-total-amount {
|
|
913
|
+
font-size: 15px;
|
|
914
|
+
font-weight: 700;
|
|
915
|
+
color: #111827;
|
|
916
|
+
font-variant-numeric: tabular-nums;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.payrails-terms-and-conditions {
|
|
920
|
+
width: 100%;
|
|
921
|
+
text-align: center;
|
|
922
|
+
line-height: 1.5;
|
|
923
|
+
font-size: 14px;
|
|
924
|
+
color: #4b5563;
|
|
925
|
+
margin: 0 8px;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
.payrails-terms-and-conditions .payrails-terms-link,
|
|
929
|
+
.payrails-terms-and-conditions a {
|
|
930
|
+
color: #2563eb;
|
|
931
|
+
text-decoration: none;
|
|
932
|
+
}
|
|
933
|
+
|
|
841
934
|
button.payrails-generic-button {
|
|
842
935
|
border: none;
|
|
843
936
|
outline: none;
|