@sezzle/sezzle-react-widget 3.1.2 → 3.1.4

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/README.md CHANGED
@@ -80,6 +80,13 @@ The following props can be specified in the element to customize the widget's co
80
80
  - Type: Boolean
81
81
  - Default: false
82
82
 
83
+ - **{numberOfPayments}** (Optional)
84
+
85
+ - Purpose: Number of installments by which the shopper will pay the total, calculates installment amount.
86
+ - Type: Number
87
+ - Options: 4, 5
88
+ - Default: 5
89
+
83
90
  - **{minPrice}** (Optional)
84
91
 
85
92
  - Purpose to display a checkout minimum within the Sezzle widget
@@ -103,9 +110,9 @@ The following props can be specified in the element to customize the widget's co
103
110
 
104
111
  `bestAPR` (optional)
105
112
 
106
- **Purpose**: Standard APR rate by which interest should be calculated.
113
+ **Purpose**: Standard APR rate by which interest should be calculated. (Note: the key is a misnomer - our lending partner now requires the APR to be calculated based on average awarded APR)
107
114
  **Type**: number
108
- **Default**: 9.99
115
+ **Default**: 21.99
109
116
 
110
117
  # Example
111
118
 
@@ -113,6 +120,7 @@ The following props can be specified in the element to customize the widget's co
113
120
  <SezzleWidget
114
121
  price={'$29.99'}
115
122
  merchantId={'12a34bc5-6de7-890f-g123-4hi5678jk901'}
123
+ numberOfPayments={5}
116
124
  theme={'light'}
117
125
  includeAPModal={false}
118
126
  minPrice={20}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sezzle/sezzle-react-widget",
3
- "version": "3.1.2",
3
+ "version": "3.1.4",
4
4
  "description": "A react component of sezzle widget where props are used to provide config",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -10,11 +10,8 @@
10
10
  },
11
11
  "main": "dist/index.cjs",
12
12
  "module": "dist/index.es.js",
13
- "publishConfig": {
14
- "access": "public"
15
- },
16
13
  "scripts": {
17
- "test": "cross-env CI=1 react-scripts test --env=jsdom",
14
+ "test": "cross-env CI=1 react-scripts test --env=jsdom --passWithNoTests",
18
15
  "test:watch": "react-scripts test --env=jsdom",
19
16
  "build": "rollup -c --bundleConfigAsCjs",
20
17
  "start": "rollup -c --bundleConfigAsCjs -w",
@@ -58,7 +55,8 @@
58
55
  },
59
56
  "overrides": {
60
57
  "nth-check": "$nth-check",
61
- "postcss": "$postcss"
58
+ "postcss": "$postcss",
59
+ "html-minifier-terser": "npm:html-minifier-next@^4.17.0"
62
60
  },
63
61
  "files": [
64
62
  "dist"
@@ -71,7 +69,7 @@
71
69
  "dependencies": {
72
70
  "@babel/node": "^7.25.9",
73
71
  "@formatjs/cli": "^6.3.1",
74
- "@lokalise/node-api": "^12.8.0",
72
+ "@lokalise/node-api": "^15.6.0",
75
73
  "adm-zip": "^0.5.16",
76
74
  "chalk": "^5.3.0",
77
75
  "sass": "^1.80.3"