@vtex/faststore-plugin-buyer-portal 1.3.35 → 1.3.37

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
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.3.37] - 2025-12-04
11
+
12
+ ## Changed
13
+
14
+ - Allow Credit Card CVV to accept 4 digits
15
+
16
+ ## [1.3.36] - 2025-12-04
17
+
18
+ ### Added
19
+
20
+ - Implements a tooltip on buying policies drawers to assist Criteria JSONana input.
21
+
10
22
  ## [1.3.35] - 2025-12-02
11
23
 
12
24
  ### Added
@@ -327,7 +339,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
327
339
  - Add CHANGELOG file
328
340
  - Add README file
329
341
 
330
- [unreleased]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/1.3.35...HEAD
342
+ [unreleased]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.37...HEAD
331
343
  [1.2.3]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.2.2...1.2.3
332
344
  [1.2.3]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.2.3
333
345
  [1.2.4]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.2.4
@@ -369,4 +381,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
369
381
  > > > > > > > main
370
382
  > > > > > > > [1.3.11]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.3.11
371
383
 
384
+ [1.3.37]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.36...v1.3.37
385
+ [1.3.36]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.35...v1.3.36
372
386
  [1.3.35]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.3.35
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtex/faststore-plugin-buyer-portal",
3
- "version": "1.3.35",
3
+ "version": "1.3.37",
4
4
  "description": "A plugin for faststore with buyer portal",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -252,9 +252,17 @@ export const BasicBuyingPolicyDrawer = ({
252
252
  />
253
253
 
254
254
  <h3>Criteria</h3>
255
- <h4>
255
+ <h4 data-fs-bp-basic-buying-policy-criteria-label>
256
256
  Define the conditions that will trigger this buying policy using{" "}
257
- <a href="https://jsonata.org/">JSONata</a>
257
+ <a href="https://jsonata.org/"> JSONata </a>
258
+ <Tooltip
259
+ data-fs-bp-basic-buying-policy-drawer-tooltip
260
+ placement="top-center"
261
+ maxWidth={300}
262
+ content="In this field, monetary values are represented in cents to support currencies with different decimal precision. Exemple: value > 10000 means greater than $100.00."
263
+ >
264
+ <Icon name="Info" />
265
+ </Tooltip>
258
266
  </h4>
259
267
 
260
268
  {isDrawerLoading ? (
@@ -84,6 +84,12 @@
84
84
  }
85
85
  }
86
86
 
87
+ [data-fs-bp-basic-buying-policy-criteria-label] {
88
+ display: flex;
89
+ align-items: center;
90
+ gap: 0.25rem;
91
+ }
92
+
87
93
  [data-fs-bp-basic-buying-policy-criteria-input] {
88
94
  position: relative;
89
95
  [data-fs-bp-basic-buying-policy-criteria-input-highlighted] {
@@ -13,4 +13,4 @@ export const LOCAL_STORAGE_LOCATION_EDIT_KEY = "bp_hide_edit_location_confirm";
13
13
  export const LOCAL_STORAGE_RECIPIENT_EDIT_KEY =
14
14
  "bp_hide_edit_recipient_confirm";
15
15
 
16
- export const CURRENT_VERSION = "1.3.35";
16
+ export const CURRENT_VERSION = "1.3.37";
@@ -14,7 +14,7 @@ export const maskExpirationDate = (expDate: string) => {
14
14
  };
15
15
 
16
16
  export const maskCVV = (verificationCode: string) => {
17
- return mask(verificationCode, "999").substring(0, 3);
17
+ return mask(verificationCode, "9999").substring(0, 4);
18
18
  };
19
19
 
20
20
  export const findCardNetwork = (