skyflow-js 1.16.1 → 1.18.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/CHANGELOG.md CHANGED
@@ -2,7 +2,21 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- ## [1.17.0] - 2022-06-14
5
+ ## [1.18.0] - 2022-07-05
6
+
7
+ ### Added
8
+ - Copy icon in collect and reveal elements
9
+
10
+ ## [1.17.1] - 2022-06-28
11
+
12
+ ### Added
13
+ - Copyright header to all files
14
+ - Security email in README
15
+ ## [1.17.0] - 2022-06-21
16
+
17
+ ### Changed
18
+ - Updated AMEX card icon
19
+ ## [1.16.1] - 2022-06-14
6
20
 
7
21
  ### Changed
8
22
  - Return 6 digit BIN value for AMEX Card Number Collect Element
package/README.md CHANGED
@@ -190,7 +190,7 @@ The sample response:
190
190
 
191
191
  ## Using Skyflow Elements to collect data
192
192
 
193
- **Skyflow Elements** provide developers with pre-built form elements to securely collect sensitive data client-side. These elements are hosted by Skyflow and injected into your web page as iframes. This reduces your PCI compliance scope by not exposing your front-end application to sensitive data. Follow the steps below to securely collect data with Skyflow Elements on your web page.
193
+ **Skyflow Elements** provide developers with pre-built form elements to securely collect sensitive data client-side. These elements are hosted by Skyflow and injected into your web page as iFrames. This reduces your PCI compliance scope by not exposing your front-end application to sensitive data. Follow the steps below to securely collect data with Skyflow Elements on your web page.
194
194
 
195
195
  ### Step 1: Create a container
196
196
 
@@ -281,7 +281,7 @@ errorTextStyles: {
281
281
  }
282
282
  ```
283
283
 
284
- Finally, the `type` field takes a Skyflow ElementType. Each type applies the appropriate regex and validations to the form element. There are currently 5 types:
284
+ Finally, the `type` field takes a Skyflow ElementType. Each type applies the appropriate regex and validations to the form element. There are currently 8 types:
285
285
  - `CARDHOLDER_NAME`
286
286
  - `CARD_NUMBER`
287
287
  - `EXPIRATION_DATE`
@@ -298,17 +298,20 @@ Along with CollectElement we can define other options which takes a dictionary o
298
298
  ```javascript
299
299
  const options = {
300
300
  required: false, //optional, indicates whether the field is marked as required. Defaults to 'false'
301
- enableCardIcon: true // optional, indicates whether card icon should be enabled (only applicable for CARD_NUMBER ElementType)
302
- format: String //optinal, format for the element (only applicable currently for EXPIRATION_DATE ElementType)
301
+ enableCardIcon: true, // optional, indicates whether card icon should be enabled (only applicable for CARD_NUMBER ElementType)
302
+ format: String, //optional, format for the element (only applicable currently for EXPIRATION_DATE ElementType),
303
+ enableCopy: false // optional, enables the copy icon in collect and reveal elements to copy text to clipboard. Defaults to 'false')
303
304
  }
304
305
  ```
305
306
 
306
307
  `required` parameter indicates whether the field is marked as required or not. If not provided, it defaults to false
307
308
 
308
- `enableCardIcon` paramenter indicates whether the icon is visible for the CARD_NUMBER element, defaults to true
309
+ `enableCardIcon` parameter indicates whether the icon is visible for the CARD_NUMBER element, defaults to true
309
310
 
310
311
  `format` parameter takes string value and indicates the format pattern applicable to the element type, It's currently only applicable to `EXPIRATION_DATE` and `EXPIRATION_YEAR` element types.
311
312
 
313
+ `enableCopy` parameter indicates whether the copy icon is visible in collect and reveal elements.
314
+
312
315
  The values that are accepted for `EXPIRATION_DATE` are
313
316
  - `MM/YY` (default)
314
317
  - `MM/YYYY`
@@ -339,8 +342,9 @@ const collectElement = {
339
342
 
340
343
  const options = {
341
344
  required: false, //optional, indicates whether the field is marked as required. Defaults to 'false'
342
- enableCardIcon: true // optional, indicates whether card icon should be enabled (only applicable for CARD_NUMBER ElementType)
343
- format: String //optinal, format for the element (only applicable currently for EXPIRATION_DATE ElementType)
345
+ enableCardIcon: true, // optional, indicates whether card icon should be enabled (only applicable for CARD_NUMBER ElementType)
346
+ format: String, //optional, format for the element (only applicable currently for EXPIRATION_DATE ElementType)
347
+ enableCopy: false // optional, enables the copy icon in collect and reveal elements to copy text to clipboard. Defaults to 'false')
344
348
  }
345
349
 
346
350
  const element = container.create(collectElement, options)
@@ -1079,3 +1083,6 @@ cardNumber.setAltText("Card Number");
1079
1083
  //clear altText
1080
1084
  cardNumber.clearAltText();
1081
1085
  ```
1086
+ ## Reporting a Vulnerability
1087
+
1088
+ If you discover a potential security issue in this project, please reach out to us at security@skyflow.com. Please do not create public GitHub issues or Pull Requests, as malicious actors could potentially view them.