@kiva/kv-components 3.80.1 → 3.82.0

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,33 @@
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.82.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.81.0...@kiva/kv-components@3.82.0) (2024-06-03)
7
+
8
+
9
+ ### Features
10
+
11
+ * remove amount lent activity feed ([#410](https://github.com/kiva/kv-ui-elements/issues/410)) ([82a2216](https://github.com/kiva/kv-ui-elements/commit/82a22166f70085ad5a725e3e58f2fb3dd7eafa78))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.81.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.80.1...@kiva/kv-components@3.81.0) (2024-05-29)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * removed unneeded code ([15c19bb](https://github.com/kiva/kv-ui-elements/commit/15c19bb1cdd6ac65910117d077dff38d48fa9cb3))
23
+
24
+
25
+ ### Features
26
+
27
+ * secondary handler remove default behavior if set ([bbf91f8](https://github.com/kiva/kv-ui-elements/commit/bbf91f8b77a79f8204b0050ef1c466573f63228a))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [3.80.1](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.80.0...@kiva/kv-components@3.80.1) (2024-05-22)
7
34
 
8
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "3.80.1",
3
+ "version": "3.82.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -75,5 +75,5 @@
75
75
  "optional": true
76
76
  }
77
77
  },
78
- "gitHead": "7be0808c8e53530e6a7660eefea94866772046de"
78
+ "gitHead": "013324187e1f8cf1639a3cc6d3e29495d26e69fe"
79
79
  }
@@ -9,7 +9,7 @@
9
9
  class="activity-avatar"
10
10
  />
11
11
  <p class="tw-text-base tw-whitespace-nowrap">
12
- <span class="data-hj-suppress">{{ lenderName }}</span> contributed ${{ amountLent }}
12
+ <span class="data-hj-suppress">{{ lenderName }}</span> contributed
13
13
  </p>
14
14
  </div>
15
15
  </template>
@@ -39,15 +39,10 @@ export default {
39
39
 
40
40
  const lenderName = computed(() => activity?.value?.lender?.name ?? '');
41
41
  const lenderImageUrl = computed(() => activity?.value?.lender?.image?.url ?? '');
42
- const amountLent = computed(() => {
43
- const amount = activity?.value?.amountLent ?? 0;
44
- return parseFloat(amount).toFixed();
45
- });
46
42
 
47
43
  return {
48
44
  lenderImageUrl,
49
45
  lenderName,
50
- amountLent,
51
46
  };
52
47
  },
53
48
  };
package/vue/KvLendCta.vue CHANGED
@@ -6,8 +6,8 @@
6
6
  variant="secondary"
7
7
  class="tw-inline-flex tw-flex-1"
8
8
  data-testid="bp-lend-cta-checkout-button"
9
- :to="!externalLinks ? '/basket' : undefined"
10
- :href="externalLinks ? '/basket' : undefined"
9
+ :to="!externalLinks || secondaryButtonHandler ? '/basket' : undefined"
10
+ :href="externalLinks || secondaryButtonHandler ? '/basket' : undefined"
11
11
  @click.native="clickSecondaryButton"
12
12
  >
13
13
  {{ loanInBasketButtonText }}
@@ -11,7 +11,7 @@ const story = (args) => {
11
11
  components: { KvInlineActivityCard },
12
12
  setup() { return { args: templateArgs }; },
13
13
  template: `
14
- <div style="max-width: 320px;">
14
+ <div style="max-width: 200px;">
15
15
  <KvInlineActivityCard v-bind="args" />
16
16
  </div>
17
17
  `,