@neovici/cosmoz-autocomplete 7.9.0 → 8.0.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/dist/autocomplete/autocomplete.js +1 -1
- package/dist/autocomplete/chip.js +1 -1
- package/dist/autocomplete/index.js +1 -1
- package/dist/autocomplete/use-autocomplete.js +1 -1
- package/dist/autocomplete/use-keys.js +1 -1
- package/dist/autocomplete/use-overflow.js +1 -1
- package/dist/autocomplete/util.js +1 -1
- package/dist/listbox/index.js +1 -1
- package/dist/listbox/use-items.js +1 -1
- package/dist/listbox/use-keyboard.js +1 -1
- package/dist/listbox/use-listbox.js +1 -1
- package/dist/listbox/use-render-item.js +1 -1
- package/package.json +12 -12
|
@@ -2,7 +2,7 @@ import { html, nothing } from 'lit-html'; // eslint-disable-line object-curly-ne
|
|
|
2
2
|
import { live } from 'lit-html/directives/live.js';
|
|
3
3
|
import { until } from 'lit-html/directives/until.js';
|
|
4
4
|
import { when } from 'lit-html/directives/when.js';
|
|
5
|
-
import { useCallback } from '
|
|
5
|
+
import { useCallback } from '@pionjs/pion';
|
|
6
6
|
import { useHost } from '@neovici/cosmoz-utils/hooks/use-host';
|
|
7
7
|
import { useImperativeApi } from '@neovici/cosmoz-utils/hooks/use-imperative-api';
|
|
8
8
|
import '@neovici/cosmoz-input';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCallback, useMemo, useEffect } from '
|
|
1
|
+
import { useCallback, useMemo, useEffect } from '@pionjs/pion';
|
|
2
2
|
import { without, array } from '@neovici/cosmoz-utils/array';
|
|
3
3
|
import { prop, strProp } from '@neovici/cosmoz-utils/object';
|
|
4
4
|
import { useHost } from '@neovici/cosmoz-utils/hooks/use-host';
|
package/dist/listbox/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html, component, useEffect, useRef, useMemo } from '
|
|
1
|
+
import { html, component, useEffect, useRef, useMemo } from '@pionjs/pion';
|
|
2
2
|
import { ref } from 'lit-html/directives/ref.js';
|
|
3
3
|
import { virtualize, virtualizerRef, } from '@lit-labs/virtualizer/virtualize.js';
|
|
4
4
|
import { portal } from '@neovici/cosmoz-utils/directives/portal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCallback, useEffect, useState } from '
|
|
1
|
+
import { useCallback, useEffect, useState } from '@pionjs/pion';
|
|
2
2
|
import { useKeyboard } from './use-keyboard';
|
|
3
3
|
export const useItems = ({ items, onSelect, defaultIndex = 0, }) => {
|
|
4
4
|
const [position, setPosition] = useState({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCallback } from '
|
|
1
|
+
import { useCallback } from '@pionjs/pion';
|
|
2
2
|
import { useMeta } from '@neovici/cosmoz-utils/hooks/use-meta';
|
|
3
3
|
import { itemRenderer as mkItemRenderer, } from './item-renderer';
|
|
4
4
|
export const useRenderItem = ({ itemRenderer = mkItemRenderer(), ...meta }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-autocomplete",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "A autocomplete input web component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lit-html",
|
|
@@ -68,26 +68,26 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@lit-labs/virtualizer": "^2.0.0",
|
|
71
|
-
"@neovici/cosmoz-dropdown": "^
|
|
72
|
-
"@neovici/cosmoz-input": "^
|
|
73
|
-
"@neovici/cosmoz-utils": "^
|
|
74
|
-
"
|
|
75
|
-
"lit-html": "^2.0.0"
|
|
71
|
+
"@neovici/cosmoz-dropdown": "^4.0.0",
|
|
72
|
+
"@neovici/cosmoz-input": "^4.0.0",
|
|
73
|
+
"@neovici/cosmoz-utils": "^6.0.0",
|
|
74
|
+
"@pionjs/pion": "^2.0.0",
|
|
75
|
+
"lit-html": "^2.0.0 || ^3.0.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@commitlint/cli": "^
|
|
79
|
-
"@commitlint/config-conventional": "^
|
|
78
|
+
"@commitlint/cli": "^18.0.0",
|
|
79
|
+
"@commitlint/config-conventional": "^18.0.0",
|
|
80
80
|
"@neovici/cfg": "^1.34.0",
|
|
81
|
-
"@open-wc/testing": "^
|
|
81
|
+
"@open-wc/testing": "^4.0.0",
|
|
82
82
|
"@semantic-release/changelog": "^6.0.0",
|
|
83
83
|
"@semantic-release/git": "^10.0.0",
|
|
84
84
|
"@storybook/storybook-deployer": "^2.8.5",
|
|
85
|
-
"@
|
|
86
|
-
"
|
|
85
|
+
"@types/mocha": "^10.0.3",
|
|
86
|
+
"@web/dev-server-storybook": "^2.0.0",
|
|
87
87
|
"husky": "^8.0.0",
|
|
88
88
|
"rollup-plugin-terser": "^7.0.2",
|
|
89
89
|
"semantic-release": "^22.0.0",
|
|
90
|
-
"sinon": "^
|
|
90
|
+
"sinon": "^17.0.0",
|
|
91
91
|
"typescript": "^5.0.0"
|
|
92
92
|
}
|
|
93
93
|
}
|