@kiva/kv-components 3.95.0 → 3.95.1

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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.95.1](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.95.0...@kiva/kv-components@3.95.1) (2024-08-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * props usage removed reactivity ([6795042](https://github.com/kiva/kv-ui-elements/commit/6795042bfcc11e133781e2591eaee4035cfd7d63))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.95.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.94.0...@kiva/kv-components@3.95.0) (2024-08-28)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "3.95.0",
3
+ "version": "3.95.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -84,5 +84,5 @@
84
84
  "optional": true
85
85
  }
86
86
  },
87
- "gitHead": "5f8bc910fcf78e8ea410172056d9172c55dc80c0"
87
+ "gitHead": "731d35dd8d4d09b1688ce93fad36c6fe993b88e6"
88
88
  }
package/utils/loanCard.js CHANGED
@@ -13,7 +13,7 @@ const REFUGEE_KEY = 'REFUGEES/DISPLACED';
13
13
 
14
14
  const findCalloutData = (tags, tagName) => tags?.find((t) => t.name.replace('#', '').toUpperCase() === tagName.toUpperCase()) ?? {}; // eslint-disable-line max-len
15
15
 
16
- export function loanCardComputedProperties(props) {
16
+ export function loanCardComputedProperties(props, hideUnitedStatesText = false) {
17
17
  const {
18
18
  externalLinks,
19
19
  customLoanDetails,
@@ -21,7 +21,6 @@ export function loanCardComputedProperties(props) {
21
21
  loan,
22
22
  categoryPageName,
23
23
  customCallouts,
24
- hideUnitedStatesText,
25
24
  } = toRefs(props);
26
25
 
27
26
  const tag = computed(() => (externalLinks.value ? 'a' : 'router-link'));
@@ -50,7 +49,7 @@ export function loanCardComputedProperties(props) {
50
49
 
51
50
  const formattedLocation = computed(() => {
52
51
  if (distributionModel.value === 'direct') {
53
- const countryText = hideUnitedStatesText?.value && countryName.value.toLowerCase() === 'united states'
52
+ const countryText = hideUnitedStatesText && countryName.value.toLowerCase() === 'united states'
54
53
  ? '' : `, ${countryName.value}`;
55
54
  return `${city.value}, ${state.value}${countryText}`;
56
55
  }
@@ -336,7 +336,7 @@ export default {
336
336
  state,
337
337
  tag,
338
338
  unreservedAmount,
339
- } = loanCardComputedProperties({ ...props, hideUnitedStatesText: true });
339
+ } = loanCardComputedProperties(props, true);
340
340
 
341
341
  const {
342
342
  clickReadMore,