@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 +15 -1
- package/package.json +1 -1
- package/src/features/buying-policies/components/BasicBuyingPolicyDrawer/BasicBuyingPolicyDrawer.tsx +10 -2
- package/src/features/buying-policies/components/BasicBuyingPolicyDrawer/basic-buying-policy-drawer.scss +6 -0
- package/src/features/shared/utils/constants.ts +1 -1
- package/src/features/shared/utils/creditCard.ts +1 -1
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/
|
|
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
package/src/features/buying-policies/components/BasicBuyingPolicyDrawer/BasicBuyingPolicyDrawer.tsx
CHANGED
|
@@ -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] {
|
|
@@ -14,7 +14,7 @@ export const maskExpirationDate = (expDate: string) => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export const maskCVV = (verificationCode: string) => {
|
|
17
|
-
return mask(verificationCode, "
|
|
17
|
+
return mask(verificationCode, "9999").substring(0, 4);
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export const findCardNetwork = (
|