@alma/widgets 2.3.1 → 2.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alma/widgets",
3
- "version": "2.3.1",
3
+ "version": "2.3.4",
4
4
  "description": "Widgets to easily display information from Alma - https://getalma.eu",
5
5
  "keywords": [],
6
6
  "main": "dist/widgets.js",
@@ -55,13 +55,13 @@
55
55
  "@semantic-release/git": "^9.0.0",
56
56
  "@testing-library/jest-dom": "^5.14.1",
57
57
  "@testing-library/react": "^12.1.2",
58
- "@types/classnames": "^2.2.11",
58
+ "@types/classnames": "^2.3.1",
59
59
  "@types/jest": "^26.0.16",
60
- "@types/lodash.isplainobject": "^4.0.6",
61
60
  "@types/no-scroll": "^2.1.0",
62
61
  "@types/node": "^14.14.10",
63
62
  "@types/react": "^17.0.30",
64
63
  "@types/react-dom": "^17.0.9",
64
+ "@types/react-modal": "^3.13.1",
65
65
  "@typescript-eslint/eslint-plugin": "^4.9.1",
66
66
  "@typescript-eslint/parser": "^4.9.1",
67
67
  "babel-plugin-css-modules-transform": "^1.6.2",
@@ -76,31 +76,25 @@
76
76
  "jest": "^26.6.0",
77
77
  "jest-config": "^26.6.0",
78
78
  "lint-staged": "^10.5.3",
79
- "lodash.get": "^4.4.2",
80
79
  "microbundle": "github:olance/microbundle#rollup/config-override",
81
80
  "postcss-assets": "^5.0.0",
82
81
  "prettier": "^2.2.1",
83
82
  "rollup": "^1.32.1",
84
83
  "rollup-plugin-copy": "^3.4.0",
85
- "sass": "^1.30.0",
86
84
  "semantic-release": "^17.3.0",
87
- "tailwindcss": "^1.9.6",
88
85
  "ts-essentials": "^7.0.1",
89
86
  "ts-jest": "^26.4.1",
90
- "typedoc": "^0.19.2",
91
87
  "typescript": "^4.1.2"
92
88
  },
93
89
  "dependencies": {
94
90
  "@alma/client": "^1.1.1",
95
- "@types/react-modal": "^3.13.1",
96
- "classnames": "^2.2.6",
97
- "date-fns": "^2.25.0",
98
- "lodash.isplainobject": "^4.0.6",
91
+ "classnames": "^2.3.1",
92
+ "date-fns": "^2.28.0",
99
93
  "no-scroll": "^2.1.1",
100
94
  "react": "^17.0.2",
101
95
  "react-dom": "^17.0.2",
102
- "react-intl": "^5.20.13",
103
- "react-modal": "^3.14.3",
96
+ "react-intl": "^5.25.0",
97
+ "react-modal": "^3.14.4",
104
98
  "react-responsive": "^9.0.0-beta.6"
105
99
  },
106
100
  "commitlint": {
package/CHANGELOG.md DELETED
@@ -1,240 +0,0 @@
1
- ## [2.3.1](https://github.com/alma/widgets/compare/v2.3.0...v2.3.1) (2022-05-02)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * update wrong translation ([#33](https://github.com/alma/widgets/issues/33)) ([578e6cd](https://github.com/alma/widgets/commit/578e6cd7550df6cc01fd7ad9968a4e8c9bb745e8))
7
-
8
- # [2.3.0](https://github.com/alma/widgets/compare/v2.2.10...v2.3.0) (2022-04-21)
9
-
10
-
11
- ### Features
12
-
13
- * **payment-plan:** add firstDisplayedPaymentPlan option ([#26](https://github.com/alma/widgets/issues/26)) ([f16fa4a](https://github.com/alma/widgets/commit/f16fa4a068a9e06aec261489065bc1282acee666))
14
-
15
- ## [2.2.10](https://github.com/alma/widgets/compare/v2.2.9...v2.2.10) (2022-04-12)
16
-
17
-
18
- ### Bug Fixes
19
-
20
- * updated build command to generate a raw folder with unminified JS/CSS ([#21](https://github.com/alma/widgets/issues/21)) ([e1729c1](https://github.com/alma/widgets/commit/e1729c1fd959eeee2e0fda1113db6ff2050b0ddb))
21
-
22
- ## [2.2.9](https://github.com/alma/widgets/compare/v2.2.8...v2.2.9) (2022-03-21)
23
-
24
-
25
- ### Bug Fixes
26
-
27
- * schedule not displaying properly when many plans are eligible ([#20](https://github.com/alma/widgets/issues/20)) ([1e80565](https://github.com/alma/widgets/commit/1e805658c6488c7fe371170c36ed6dd8b1446500))
28
-
29
- ## [2.2.8](https://github.com/alma/widgets/compare/v2.2.7...v2.2.8) (2022-03-10)
30
-
31
-
32
- ### Bug Fixes
33
-
34
- * update node in ci-cd script and nvm version ([#14](https://github.com/alma/widgets/issues/14)) ([201e192](https://github.com/alma/widgets/commit/201e1920f4251ced9f05214216e9eca95ce35b62))
35
-
36
- ## [2.2.7](https://github.com/alma/widgets/compare/v2.2.6...v2.2.7) (2022-03-02)
37
-
38
-
39
- ### Bug Fixes
40
-
41
- * implicit return in renderWithProviders ([#11](https://github.com/alma/widgets/issues/11)) ([91dd95f](https://github.com/alma/widgets/commit/91dd95f7f069f143ff4c0ca4730eaad1e88f27c9))
42
-
43
- ## [2.2.6](https://github.com/alma/widgets/compare/v2.2.5...v2.2.6) (2022-01-11)
44
-
45
-
46
- ### Bug Fixes
47
-
48
- * improve modal's behavior, wording and styles, fix i18n options ([#9](https://github.com/alma/widgets/issues/9)) ([1a12fb2](https://github.com/alma/widgets/commit/1a12fb291d482c2ee3b836516b2859042e5390e2))
49
-
50
- ## [2.2.5](https://github.com/alma/widgets/compare/v2.2.4...v2.2.5) (2021-12-20)
51
-
52
-
53
- ### Bug Fixes
54
-
55
- * update spanish translations ([6c9cf7d](https://github.com/alma/widgets/commit/6c9cf7d3f26cd310d59f3a412a8bb453fedd6a5e))
56
-
57
- ## [2.2.4](https://github.com/alma/widgets/compare/v2.2.3...v2.2.4) (2021-12-15)
58
-
59
-
60
- ### Bug Fixes
61
-
62
- * z-index issue with prestashop header ([e9b2ffe](https://github.com/alma/widgets/commit/e9b2ffef6ad7baf6352916a48cabdfcbd6dbb62b))
63
-
64
- ## [2.2.3](https://github.com/alma/widgets/compare/v2.2.2...v2.2.3) (2021-12-15)
65
-
66
-
67
- ### Bug Fixes
68
-
69
- * **payment-plan-button:** add prevent default on click ([3c228e5](https://github.com/alma/widgets/commit/3c228e5c96c4316fd915b5877ebf533a3d831cd4))
70
-
71
- ## [2.2.2](https://github.com/alma/widgets/compare/v2.2.1...v2.2.2) (2021-12-15)
72
-
73
-
74
- ### Bug Fixes
75
-
76
- * **eligibility:** handle deferred days and months in eligibility request ([48a3e96](https://github.com/alma/widgets/commit/48a3e96f67e776a6aaa73142e3c9799966454592))
77
-
78
- ## [2.2.1](https://github.com/alma/widgets/compare/v2.2.0...v2.2.1) (2021-12-14)
79
-
80
-
81
- ### Bug Fixes
82
-
83
- * **eligibity-modal:** update missing div ([fa1d2b5](https://github.com/alma/widgets/commit/fa1d2b5e17f8adaf18ff4fbc7a2b40d0fb913877))
84
-
85
- # [2.2.0](https://github.com/alma/widgets/compare/v2.1.1...v2.2.0) (2021-12-14)
86
-
87
-
88
- ### Features
89
-
90
- * update ui to fit figma design ([2e169ca](https://github.com/alma/widgets/commit/2e169ca2c3dff3334b9c6fc3977372bcad21dcfc))
91
-
92
- ## [2.1.1](https://github.com/alma/widgets/compare/v2.1.0...v2.1.1) (2021-12-13)
93
-
94
-
95
- ### Bug Fixes
96
-
97
- * css update to keep layout consistent ([#2](https://github.com/alma/widgets/issues/2)) ([4856af2](https://github.com/alma/widgets/commit/4856af25226b08fc5d6c01a162ecea34762cc13f))
98
-
99
- # [2.1.0](https://github.com/alma/widgets/compare/v2.0.0...v2.1.0) (2021-12-09)
100
-
101
-
102
- ### Features
103
-
104
- * trigger release ([9f34015](https://github.com/alma/widgets/commit/9f340150382328b12529f5b67d0b34d76ad32094))
105
-
106
- # [2.0.0](https://github.com/alma/widgets/compare/v1.1.2...v2.0.0) (2021-12-09)
107
-
108
-
109
- ### Bug Fixes
110
-
111
- * **(widget):** fix css & eligibility filter ([b2c2399](https://github.com/alma/widgets/commit/b2c2399191e0e7b5854b0a4480ee61f6f609d1a9))
112
- * **button:** fix animation ([930b830](https://github.com/alma/widgets/commit/930b830a15febf9c58326c5eed4f4a6b9ecfe249))
113
- * **button:** fix animation + tests ([ea3616b](https://github.com/alma/widgets/commit/ea3616b4cb143f5e5ed602737f44353a662c898a))
114
- * **button:** prevent opening modal when there is no eligible plan ([ec352f3](https://github.com/alma/widgets/commit/ec352f3c4fc50f492b0550e9ffc018b07f2a3ade))
115
- * **dist:** remove dist from gitignore ([797d746](https://github.com/alma/widgets/commit/797d7462f8739a107e0bec6f2d0e8da8fcf379aa))
116
- * **example:** remove old background ([d2d18f8](https://github.com/alma/widgets/commit/d2d18f8d5b174ff877fd01a05b216c10afcb4921))
117
- * **example:** simpler example page ([75bef6d](https://github.com/alma/widgets/commit/75bef6d3b7f4d73dc0581be01f7335ac44efa4ad))
118
- * **general:** fixed render ([0ddd9f8](https://github.com/alma/widgets/commit/0ddd9f893c96a2e6fff1b49c3c9578fe92286bb5))
119
- * **gitignore:** remove dist from git cache ([c14dbb2](https://github.com/alma/widgets/commit/c14dbb22c2fab1d8fd3da06d21b42bae1ff22718))
120
- * **i18n:** use IntlProvider ([d48811d](https://github.com/alma/widgets/commit/d48811daa9735d71665d9d8dd3b3990b40a234e2))
121
- * **modal:** display customer fee for pnx ([b20497e](https://github.com/alma/widgets/commit/b20497ef1cbeec4a766746c93d144033a2efea52))
122
- * **style:** repair broken CSS ([4228091](https://github.com/alma/widgets/commit/4228091a9e4a263a070ea771b1096c6c8448fd99))
123
- * **widget:** remove default plans - fixed loader - remove reload ([95612af](https://github.com/alma/widgets/commit/95612af47d4dda348e7b4a50c7b28adcc98d0326))
124
- * remove useless code ([8b1e371](https://github.com/alma/widgets/commit/8b1e371bbb681c1c56b8de0e450869ea1a6f2261))
125
-
126
-
127
- ### Documentation
128
-
129
- * complete readme ([f2b4036](https://github.com/alma/widgets/commit/f2b4036df3f54a26b3673378faee0745c262a8ab))
130
-
131
-
132
- ### Features
133
-
134
- * **(widgets):** added basic widgets ([2e53ea4](https://github.com/alma/widgets/commit/2e53ea4e0f78a11617ab1b66a1f73ac372b817ec))
135
- * **button:** added active option handling & info msg ([d3bada5](https://github.com/alma/widgets/commit/d3bada53b822403df0c119db4c1dfee8f732ddcb))
136
- * **button:** added default config + transition delay ([3ad73a4](https://github.com/alma/widgets/commit/3ad73a485f20ce594a1cf65f1d10fad992187460))
137
- * **button:** added plan configuration ([47e7bfc](https://github.com/alma/widgets/commit/47e7bfc2d46e01ae476bdedd4daa5dd19088eaaf))
138
- * **button:** filter p1x and send only active plans to modal ([6189bf0](https://github.com/alma/widgets/commit/6189bf0b808a586819104acda5d990f84c01bdf2))
139
- * **button:** hide if not applicable ([8336fef](https://github.com/alma/widgets/commit/8336fef091798c708c6f59ce0a81a915225c2fc3))
140
- * **fetch:** handle pending and error on api call ([99bb8a4](https://github.com/alma/widgets/commit/99bb8a4c8c85aab0e74fd39ab2668ad06c062bc6))
141
- * **i18n:** add crowdin with translations ([3fe699e](https://github.com/alma/widgets/commit/3fe699ea15b4da8a4e70ca5fd0c8616f78005c54))
142
- * **i18n:** add locale in options and add all translations ([5d51331](https://github.com/alma/widgets/commit/5d513312283a68eff506bf26d6828f78d6cfa0db))
143
- * **modal:** add modal content ([80b60e7](https://github.com/alma/widgets/commit/80b60e76ebfc4f48d6cde731ce1650eabd8fe4f5))
144
- * **paymentplanwidget:** added paymentplan button ([19a3af1](https://github.com/alma/widgets/commit/19a3af12995c9a9278e6516a0d173ec8b35b36ed))
145
- * **readme:** trigger release ([8b22c04](https://github.com/alma/widgets/commit/8b22c04bbf958dc28e5b412a4ca822c78fe4c868))
146
-
147
-
148
- ### Reverts
149
-
150
- * **general:** restart from basics ([692fdc3](https://github.com/alma/widgets/commit/692fdc37773062813e14cb1435de6a9f1c0320ed))
151
-
152
-
153
- ### BREAKING CHANGES
154
-
155
- * Provide a new API. See README.md
156
-
157
- ## [1.1.2](https://github.com/alma/alma-widgets/compare/v1.1.1...v1.1.2) (2021-11-19)
158
-
159
-
160
- ### Bug Fixes
161
-
162
- * **widget:** add customer interest in first and next amount ([2a54db7](https://github.com/alma/alma-widgets/commit/2a54db7ee7a81449b482bbb57108374b8d46875b))
163
-
164
- ## [1.1.1](https://github.com/alma/alma-widgets/compare/v1.1.0...v1.1.1) (2021-10-13)
165
-
166
-
167
- ### Bug Fixes
168
-
169
- * **eligibility:** change default minAmount rules ([504f623](https://github.com/alma/alma-widgets/commit/504f623f164ee1a8eeb4ced013143a927819119b))
170
-
171
- # [1.1.0](https://github.com/alma/alma-widgets/compare/v1.0.2...v1.1.0) (2021-09-28)
172
-
173
-
174
- ### Bug Fixes
175
-
176
- * **multiply-sign:** replace by a svg ([acb2581](https://github.com/alma/alma-widgets/commit/acb25812e1c8f484584b12ef72f7e592f41f4c3f))
177
- * **p10x:** handle customer_interest ([0f6b97b](https://github.com/alma/alma-widgets/commit/0f6b97bf8dcf1d58013ac444773de47abdc0bd7c))
178
- * **p10x:** use customer_interest in total amount calculation ([f39a0e1](https://github.com/alma/alma-widgets/commit/f39a0e168e237ef343b0015f726260d90903d811))
179
-
180
-
181
- ### Features
182
-
183
- * **p10x:** add legal credit text ([89985a8](https://github.com/alma/alma-widgets/commit/89985a879c33c5882e7dbbf6e33ceac01915cf51))
184
-
185
- ## [1.0.2](https://github.com/alma/alma-widgets/compare/v1.0.1...v1.0.2) (2020-12-10)
186
-
187
-
188
- ### Bug Fixes
189
-
190
- * add some more styles reset to protect widgets from host's CSS ([c2a560a](https://github.com/alma/alma-widgets/commit/c2a560acb97e11427e3a2224b92de6453bbfd445))
191
- * change rem for px on all dimensions to avoid depending on host's CSS ([ddf486d](https://github.com/alma/alma-widgets/commit/ddf486d11a0e5d32cd8cfcc7fde918080b59caca))
192
-
193
- ## [1.0.1](https://github.com/alma/alma-widgets/compare/v1.0.0...v1.0.1) (2020-12-09)
194
-
195
-
196
- ### Bug Fixes
197
-
198
- * **readme:** remove TypeScript starter lib's readme and re-release to NPM ([7952cc4](https://github.com/alma/alma-widgets/commit/7952cc422ecaecc9884197a4b51a639460f2572c))
199
-
200
- # 1.0.0 (2020-12-09)
201
-
202
-
203
- ### Bug Fixes
204
-
205
- * fix modal close callback not being bound to `this` ([f064300](https://github.com/alma/alma-widgets/commit/f0643007fab9e91a1e3a42d1498ae65c6ae69f1a))
206
- * fix modal showing a vertical scrollbar because of card logos ([9f3b4c1](https://github.com/alma/alma-widgets/commit/9f3b4c127990d01900c200dda62a8652013620c0))
207
- * **payment-plans:** make it clearer, which plan is active ([753b687](https://github.com/alma/alma-widgets/commit/753b68775fbab5eefd571a4af99c306d4dfaf1a2))
208
- * improve display for smaller widths ([597ed44](https://github.com/alma/alma-widgets/commit/597ed44951238f29f5d4f71fd52c4a68874c3073))
209
- * various fixes ([2ed56c5](https://github.com/alma/alma-widgets/commit/2ed56c527e2d87ef0057f8a83f52bc3909f8062a))
210
-
211
-
212
- ### Features
213
-
214
- * **payment-plans:** allow deactivation of auto transition between plans ([2ddb1d0](https://github.com/alma/alma-widgets/commit/2ddb1d0e929063425a05ae4609a4260495558038))
215
-
216
-
217
- * feat(payment-plans)!: display payment plans information in a compact way ([ce3d1eb](https://github.com/alma/alma-widgets/commit/ce3d1eb6425807a83c413546b31ded30c5b8dbf6))
218
- * refactor!: make PaymentPlans widget follow new architecture for preact rendering ([5749be5](https://github.com/alma/alma-widgets/commit/5749be5b8d123417e493bdcb5c8de4b31bede020))
219
- * feat!: complete overhaul of the "How It Works" widget ([6bef49a](https://github.com/alma/alma-widgets/commit/6bef49a05478edcbec8717bbe77804ecaa4c90b2))
220
- * refactor!: make Widget render a preact-based renderer component ([ea771c2](https://github.com/alma/alma-widgets/commit/ea771c2f3f91c9a910935045664802c04f16abfa))
221
-
222
-
223
- ### BREAKING CHANGES
224
-
225
- * new design for the widget means its external API & settings
226
- have changed completely.
227
- * because of its new design, the widget now accepts less settings
228
- and is prepared for more complex use cases to come such as PayLater support
229
- * - The widget imposes its design/layout and, to maintain
230
- Alma's branding, is not customizable anymore.
231
- - Settings have been reduced to the bare necessary.
232
- - The widget now only generates a modal (used to render a clickable
233
- title that triggered the modal); it must be controlled by the
234
- implementer using its `show` property.
235
- * Heavy refactoring introduces multiple breaking changes:
236
- - `WidgetsController.create` renamed to `add`
237
- - Widget class internal methods have change; `refresh` is removed and
238
- `render` made the main rendering entrypoint
239
- - Widget subclasses must now implement a `renderComponent` method to
240
- implement their rendering
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export default function FirstDiplayedPaymentPlan(animationDuration: number): void;