@neovici/cosmoz-dropdown 7.7.0 → 7.7.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.
|
@@ -95,11 +95,11 @@ const CosmozDropdownNext = (host) => {
|
|
|
95
95
|
if (disabled)
|
|
96
96
|
return;
|
|
97
97
|
setOpened(true);
|
|
98
|
-
popoverRef.current?.showPopover();
|
|
98
|
+
popoverRef.current?.showPopover?.();
|
|
99
99
|
}, [disabled]);
|
|
100
100
|
const close = useCallback(() => {
|
|
101
101
|
setOpened(false);
|
|
102
|
-
popoverRef.current?.hidePopover();
|
|
102
|
+
popoverRef.current?.hidePopover?.();
|
|
103
103
|
}, []);
|
|
104
104
|
const toggle = useCallback(() => {
|
|
105
105
|
if (disabled)
|
|
@@ -116,9 +116,9 @@ const CosmozDropdownNext = (host) => {
|
|
|
116
116
|
if (!popover)
|
|
117
117
|
return;
|
|
118
118
|
if (opened)
|
|
119
|
-
popover.showPopover();
|
|
119
|
+
popover.showPopover?.();
|
|
120
120
|
else
|
|
121
|
-
popover.hidePopover();
|
|
121
|
+
popover.hidePopover?.();
|
|
122
122
|
}, [opened]);
|
|
123
123
|
useEffect(() => {
|
|
124
124
|
host.toggleAttribute('opened', !!opened);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-dropdown",
|
|
3
|
-
"version": "7.7.
|
|
3
|
+
"version": "7.7.1",
|
|
4
4
|
"description": "A simple dropdown web component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lit-html",
|
|
@@ -33,20 +33,9 @@
|
|
|
33
33
|
"storybook:build": "storybook build",
|
|
34
34
|
"storybook:deploy": "storybook-to-ghpages",
|
|
35
35
|
"storybook:preview": "npm run storybook:build && http-server -d ./storybook-static/",
|
|
36
|
+
"changeset": "changeset",
|
|
36
37
|
"prepare": "husky"
|
|
37
38
|
},
|
|
38
|
-
"release": {
|
|
39
|
-
"plugins": [
|
|
40
|
-
"@semantic-release/commit-analyzer",
|
|
41
|
-
"@semantic-release/release-notes-generator",
|
|
42
|
-
"@semantic-release/changelog",
|
|
43
|
-
"@semantic-release/github",
|
|
44
|
-
"@semantic-release/npm",
|
|
45
|
-
"@semantic-release/git"
|
|
46
|
-
],
|
|
47
|
-
"branch": "master",
|
|
48
|
-
"preset": "conventionalcommits"
|
|
49
|
-
},
|
|
50
39
|
"publishConfig": {
|
|
51
40
|
"access": "public"
|
|
52
41
|
},
|
|
@@ -81,6 +70,7 @@
|
|
|
81
70
|
"lit-html": "^3.1.2"
|
|
82
71
|
},
|
|
83
72
|
"devDependencies": {
|
|
73
|
+
"@changesets/cli": "^2.27.0",
|
|
84
74
|
"@commitlint/cli": "^20.0.0",
|
|
85
75
|
"@commitlint/config-conventional": "^20.0.0",
|
|
86
76
|
"@neovici/cfg": "^2.13.0",
|
|
@@ -88,8 +78,6 @@
|
|
|
88
78
|
"@neovici/cosmoz-tokens": "^3.2.1",
|
|
89
79
|
"@open-wc/testing": "^4.0.0",
|
|
90
80
|
"@playwright/test": "1.60.0",
|
|
91
|
-
"@semantic-release/changelog": "^6.0.0",
|
|
92
|
-
"@semantic-release/git": "^10.0.0",
|
|
93
81
|
"@storybook/addon-docs": "^10.0.0",
|
|
94
82
|
"@storybook/addon-vitest": "^10.2.4",
|
|
95
83
|
"@storybook/web-components-vite": "^10.0.0",
|
|
@@ -103,7 +91,6 @@
|
|
|
103
91
|
"lint-staged": "^16.2.7",
|
|
104
92
|
"playwright": "1.60.0",
|
|
105
93
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
106
|
-
"semantic-release": "^25.0.0",
|
|
107
94
|
"shadow-dom-testing-library": "^1.13.1",
|
|
108
95
|
"sinon": "^21.0.0",
|
|
109
96
|
"storybook": "^10.0.0",
|