@payrails/web-sdk 5.27.0 → 5.28.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payrails/web-sdk",
3
- "version": "5.27.0",
3
+ "version": "5.28.0",
4
4
  "description": "SDK providing tokenization options on the client for merchants",
5
5
  "main": "index.js",
6
6
  "types": "payrails.d.ts",
@@ -91,6 +91,7 @@
91
91
  overflow: hidden;
92
92
  border: 1px solid #888;
93
93
  border-radius: 4px;
94
+ position: relative;
94
95
  }
95
96
 
96
97
  #payrails-popup-background {
@@ -107,6 +108,41 @@
107
108
  align-content: center;
108
109
  }
109
110
 
111
+ #payrails-popup-cancel-button {
112
+ position: absolute;
113
+ top: 8px;
114
+ right: 8px;
115
+ width: 32px;
116
+ height: 32px;
117
+ background: none;
118
+ border: none;
119
+ cursor: pointer;
120
+ z-index: 1;
121
+ display: flex;
122
+ align-items: center;
123
+ justify-content: center;
124
+ border-radius: 50%;
125
+ transition: background-color 0.2s ease;
126
+ }
127
+
128
+ #payrails-popup-cancel-button::before,
129
+ #payrails-popup-cancel-button::after {
130
+ content: '';
131
+ position: absolute;
132
+ width: 14px;
133
+ height: 2px;
134
+ transition: background-color 0.2s ease;
135
+ background-color: #667da6;
136
+ }
137
+
138
+ #payrails-popup-cancel-button::before {
139
+ transform: rotate(45deg);
140
+ }
141
+
142
+ #payrails-popup-cancel-button::after {
143
+ transform: rotate(-45deg);
144
+ }
145
+
110
146
  #payrails-frame {
111
147
  border: 0;
112
148
  }
package/payrails.d.ts CHANGED
@@ -969,7 +969,8 @@ declare enum AuthorizationFailureReasons {
969
969
  VALIDATION_FAILED = "VALIDATION_FAILED",
970
970
  AUTHORIZATION_ERROR = "AUTHORIZATION_ERROR",
971
971
  AUTHENTICATION_ERROR = "AUTHENTICATION_ERROR",
972
- UNKNOWN_ERROR = "UNKNOWN_ERROR"
972
+ UNKNOWN_ERROR = "UNKNOWN_ERROR",
973
+ USER_CANCELLED = "USER_CANCELLED"
973
974
  }
974
975
 
975
976
  interface AuthFailedMsgOptions {