@kiva/kv-components 3.50.0 → 3.51.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,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.51.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.50.0...@kiva/kv-components@3.51.0) (2024-01-25)
7
+
8
+
9
+ ### Features
10
+
11
+ * add basic comments container for future comment work ([4f1b3ab](https://github.com/kiva/kv-ui-elements/commit/4f1b3aba7f78ead3cf53a955bbb1b1243c4b2cda))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.50.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.49.1...@kiva/kv-components@3.50.0) (2024-01-19)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "3.50.0",
3
+ "version": "3.51.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": "7bedad99cec599d99830aeebedfc9d49f4f53649"
78
+ "gitHead": "a190bfbb90887db6d39f09d66bb31bca2d957c4b"
79
79
  }
@@ -0,0 +1,18 @@
1
+ import { render } from '@testing-library/vue';
2
+ import Container from '../../../../vue/KvCommentsContainer.vue';
3
+
4
+ const renderContainer = (props = {}) => {
5
+ return render(Container, { props });
6
+ };
7
+
8
+ describe('KvCommentsContainer', () => {
9
+ it('should render without activity ID', async () => {
10
+ const component = renderContainer();
11
+ component.getByText('Activity ID missing');
12
+ });
13
+
14
+ it('should render with activity ID', async () => {
15
+ const component = renderContainer({ activityId: 'asd' });
16
+ component.getByText('Comment functionality coming soon!');
17
+ });
18
+ });
@@ -0,0 +1,28 @@
1
+ <template>
2
+ <div>
3
+ <h3>Comment Container Placeholder</h3>
4
+ <p v-if="activityId">
5
+ Comment functionality coming soon!
6
+ </p>
7
+ <p
8
+ v-else
9
+ class="tw-text-desert-rose"
10
+ >
11
+ Activity ID missing
12
+ </p>
13
+ </div>
14
+ </template>
15
+
16
+ <script>
17
+ export default {
18
+ props: {
19
+ /**
20
+ * The activity ID for the comments
21
+ */
22
+ activityId: {
23
+ type: String,
24
+ default: '',
25
+ },
26
+ },
27
+ };
28
+ </script>
@@ -0,0 +1,23 @@
1
+ import KvCommentsContainer from '../KvCommentsContainer.vue';
2
+
3
+ export default {
4
+ title: 'KvCommentsContainer',
5
+ component: KvCommentsContainer,
6
+ };
7
+
8
+ const story = (args) => {
9
+ const template = (templateArgs, { argTypes }) => ({
10
+ props: Object.keys(argTypes),
11
+ components: { KvCommentsContainer },
12
+ setup() { return { args: templateArgs }; },
13
+ template: `
14
+ <KvCommentsContainer v-bind="args" />
15
+ `,
16
+ });
17
+ template.args = args;
18
+ return template;
19
+ };
20
+
21
+ export const Default = story({});
22
+
23
+ export const Activity = story({ activityId: 'asd' });