@kiva/kv-components 3.1.0 → 3.2.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,24 @@
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.2.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.1.0...@kiva/kv-components@3.2.0) (2022-08-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * event name in emits ([06813fd](https://github.com/kiva/kv-ui-elements/commit/06813fda75cf9a169b9e5afd33549b9eb77b33a1))
12
+ * remove unused event ([345cd90](https://github.com/kiva/kv-ui-elements/commit/345cd903ab5d6725de34d2085a2c8e65cba6933f))
13
+
14
+
15
+ ### Features
16
+
17
+ * add payload to track closing events ([275c81d](https://github.com/kiva/kv-ui-elements/commit/275c81da659fa586500b9d21607ba5c69c4e5839))
18
+ * add tailored emit event for MARS-199 experiment in kvLightbox ([8499206](https://github.com/kiva/kv-ui-elements/commit/8499206381c9e5bf1ac0ae4ab913b91b07ba906e))
19
+
20
+
21
+
22
+
23
+
6
24
  # [3.1.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.0.6...@kiva/kv-components@3.1.0) (2022-07-19)
7
25
 
8
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -68,5 +68,5 @@
68
68
  "optional": true
69
69
  }
70
70
  },
71
- "gitHead": "408647638638310803b48e4a93cb2744e5ec4bce"
71
+ "gitHead": "d5530b779a1ae57e21fb31a23d0098deec908502"
72
72
  }
@@ -79,7 +79,7 @@
79
79
  tw-w-6 tw-h-6 tw--m-2
80
80
  hover:tw-text-action-highlight
81
81
  "
82
- @click.stop="hide"
82
+ @click.stop="hide('close-x')"
83
83
  >
84
84
  <kv-material-icon
85
85
  class="tw-w-3 tw-h-3"
@@ -233,7 +233,7 @@ export default {
233
233
  return 'dialog';
234
234
  });
235
235
 
236
- const hide = () => {
236
+ const hide = (closedBy = '') => {
237
237
  // scroll any content inside the lightbox back to top
238
238
  if (kvLightbox.value && kvLightboxBody.value) {
239
239
  deactivateFocusTrap();
@@ -252,7 +252,7 @@ export default {
252
252
  * @event lightbox-closed
253
253
  * @type {Event}
254
254
  */
255
- emit('lightbox-closed');
255
+ emit('lightbox-closed', { type: closedBy });
256
256
  };
257
257
 
258
258
  onKeyUp = (e) => {
@@ -263,7 +263,7 @@ export default {
263
263
 
264
264
  const onScreenClick = () => {
265
265
  if (!preventClose.value) {
266
- hide();
266
+ hide('background-click');
267
267
  }
268
268
  };
269
269