@onereach/ui-components-vue2 19.4.0 → 19.4.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.
@@ -49,8 +49,14 @@ var script = defineComponent({
49
49
  }
50
50
  });
51
51
  // Effects
52
- onClickOutside(root, () => {
53
- close();
52
+ onClickOutside(root, event => {
53
+ const path = event.composedPath();
54
+ const ignoreClasses = ['or-popover-v3', 'or-bottom-sheet-v3', 'or-modal-v3'];
55
+ if (!path.some(({
56
+ classList
57
+ }) => ignoreClasses.some(ignoreClass => classList === null || classList === void 0 ? void 0 : classList.contains(ignoreClass)))) {
58
+ close();
59
+ }
54
60
  });
55
61
  useSwipe(root, {
56
62
  onSwipeEnd: (event, direction) => {
@@ -98,8 +98,14 @@ var script = defineComponent({
98
98
  }
99
99
  });
100
100
  // Effects
101
- onClickOutside(root, () => {
102
- close();
101
+ onClickOutside(root, event => {
102
+ const path = event.composedPath();
103
+ const ignoreClasses = ['or-popover-v3', 'or-bottom-sheet-v3', 'or-modal-v3'];
104
+ if (!path.some(({
105
+ classList
106
+ }) => ignoreClasses.some(ignoreClass => classList === null || classList === void 0 ? void 0 : classList.contains(ignoreClass)))) {
107
+ close();
108
+ }
103
109
  });
104
110
  useSwipe(root, {
105
111
  onSwipeEnd: (event, direction) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components-vue2",
3
- "version": "19.4.0",
3
+ "version": "19.4.1",
4
4
  "npmUnpacked": "4.15.2",
5
5
  "description": "Vue components library for v2",
6
6
  "sideEffects": false,
@@ -35,7 +35,7 @@
35
35
  "@codemirror/view": "^6",
36
36
  "@floating-ui/dom": "1.5.3",
37
37
  "@lezer/highlight": "*",
38
- "@onereach/styles": "^19.4.0",
38
+ "@onereach/styles": "^19.4.1",
39
39
  "@splidejs/splide": "4.0.6",
40
40
  "@tiptap/core": "2.0.3",
41
41
  "@tiptap/extension-blockquote": "2.0.3",
@@ -134,5 +134,5 @@
134
134
  "default": "./dist/bundled/components/*/index.js"
135
135
  }
136
136
  },
137
- "gitHead": "3baa15fb0a2b6abb7714ca09a08acb320293be77"
137
+ "gitHead": "e4d92db0a04d7d6ae57881105d6a1aa9d3d29477"
138
138
  }