Skip to content

Commit

Permalink
feat: update to pion
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Update to @pionjs/pion
  • Loading branch information
megheaiulian committed Jan 11, 2024
1 parent 5198796 commit d367046
Show file tree
Hide file tree
Showing 18 changed files with 2,191 additions and 1,897 deletions.
4,044 changes: 2,169 additions & 1,875 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,22 @@
},
"dependencies": {
"@lit-labs/virtualizer": "^2.0.0",
"@neovici/cosmoz-dropdown": "^3.4.0",
"@neovici/cosmoz-input": "^3.18.0",
"@neovici/cosmoz-utils": "^5.0.0",
"haunted": "^5.0.0",
"@neovici/cosmoz-dropdown": "^4.0.0",
"@neovici/cosmoz-input": "^4.0.0",
"@neovici/cosmoz-utils": "^6.0.0",
"@pionjs/pion": "^2.0.0",
"lit-html": "^2.0.0 || ^3.0.0"
},
"devDependencies": {
"@commitlint/cli": "^18.0.0",
"@commitlint/config-conventional": "^18.0.0",
"@neovici/cfg": "^1.34.0",
"@open-wc/testing": "^3.0.0",
"@open-wc/testing": "^4.0.0",
"@semantic-release/changelog": "^6.0.0",
"@semantic-release/git": "^10.0.0",
"@storybook/storybook-deployer": "^2.8.5",
"@types/mocha": "^10.0.3",
"@web/dev-server-storybook": "^1.0.0",
"@web/dev-server-storybook": "^2.0.0",
"husky": "^8.0.0",
"rollup-plugin-terser": "^7.0.2",
"semantic-release": "^22.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { html, nothing } from 'lit-html'; // eslint-disable-line object-curly-ne
import { live } from 'lit-html/directives/live.js';
import { until } from 'lit-html/directives/until.js';
import { when } from 'lit-html/directives/when.js';
import { useCallback } from 'haunted';
import { useCallback } from '@pionjs/pion';
import { useHost } from '@neovici/cosmoz-utils/hooks/use-host';
import { useImperativeApi } from '@neovici/cosmoz-utils/hooks/use-imperative-api';
import '@neovici/cosmoz-input';
Expand Down
2 changes: 1 addition & 1 deletion src/autocomplete/chip.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { html, component } from 'haunted';
import { html, component } from '@pionjs/pion';
import { when } from 'lit-html/directives/when.js';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import styles from './chip.css';
Expand Down
2 changes: 1 addition & 1 deletion src/autocomplete/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { component, useCallback } from 'haunted';
import { component, useCallback } from '@pionjs/pion';
import {
Autocomplete,
observedAttributes as atts,
Expand Down
2 changes: 1 addition & 1 deletion src/autocomplete/use-autocomplete.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useCallback, useMemo, useEffect } from 'haunted';
import { useCallback, useMemo, useEffect } from '@pionjs/pion';
import { without, array } from '@neovici/cosmoz-utils/array';
import { prop, strProp } from '@neovici/cosmoz-utils/object';
import { useHost } from '@neovici/cosmoz-utils/hooks/use-host';
Expand Down
2 changes: 1 addition & 1 deletion src/autocomplete/use-keys.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect } from 'haunted';
import { useEffect } from '@pionjs/pion';
import { array } from '@neovici/cosmoz-utils/array';
import { useMeta } from '@neovici/cosmoz-utils/hooks/use-meta';

Expand Down
2 changes: 1 addition & 1 deletion src/autocomplete/use-overflow.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useLayoutEffect, useState, useMemo } from 'haunted';
import { useLayoutEffect, useState, useMemo } from '@pionjs/pion';
import { useHost } from '@neovici/cosmoz-utils/hooks/use-host';
import { raf } from './util';

Expand Down
2 changes: 1 addition & 1 deletion src/autocomplete/util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useCallback } from 'haunted';
import { useCallback } from '@pionjs/pion';

export const search = <I>(
source: I[],
Expand Down
2 changes: 1 addition & 1 deletion src/listbox/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { html, component, useEffect, useRef, useMemo } from 'haunted';
import { html, component, useEffect, useRef, useMemo } from '@pionjs/pion';
import { ref } from 'lit-html/directives/ref.js';
import {
virtualize,
Expand Down
2 changes: 1 addition & 1 deletion src/listbox/use-items.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useCallback, useEffect, useState } from 'haunted';
import { useCallback, useEffect, useState } from '@pionjs/pion';
import { useKeyboard } from './use-keyboard';

export interface UseItems<T> {
Expand Down
2 changes: 1 addition & 1 deletion src/listbox/use-keyboard.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect } from 'haunted';
import { useEffect } from '@pionjs/pion';
import { useMeta } from '@neovici/cosmoz-utils/hooks/use-meta';

type Handler = () => void;
Expand Down
2 changes: 1 addition & 1 deletion src/listbox/use-listbox.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useMemo } from 'haunted';
import { useMemo } from '@pionjs/pion';
import { useHost } from '@neovici/cosmoz-utils/hooks/use-host';
import { usePosition, Placement } from '@neovici/cosmoz-dropdown/use-position';
import { byValue } from './util';
Expand Down
2 changes: 1 addition & 1 deletion src/listbox/use-render-item.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useCallback } from 'haunted';
import { useCallback } from '@pionjs/pion';
import { useMeta } from '@neovici/cosmoz-utils/hooks/use-meta';
import {
itemRenderer as mkItemRenderer,
Expand Down
2 changes: 1 addition & 1 deletion test/use-autocomplete.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { component } from 'haunted';
import { component } from '@pionjs/pion';
import { expect, html, fixture, nextFrame } from '@open-wc/testing';
import { spy, match as sinonMatch } from 'sinon';
import { useAutocomplete } from '../src/autocomplete/use-autocomplete';
Expand Down
2 changes: 1 addition & 1 deletion test/use-keyboard.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { component } from 'haunted';
import { component } from '@pionjs/pion';
import { expect, html, fixture } from '@open-wc/testing';
import { spy } from 'sinon';
import { useKeyboard } from '../src/listbox/use-keyboard';
Expand Down
2 changes: 1 addition & 1 deletion test/use-keys.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { component } from 'haunted';
import { component } from '@pionjs/pion';
import { expect, html, fixture } from '@open-wc/testing';
import { spy } from 'sinon';
import { useKeys } from '../src/autocomplete/use-keys';
Expand Down
2 changes: 1 addition & 1 deletion test/use-listbox.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { component } from 'haunted';
import { component } from '@pionjs/pion';
import { expect, html, fixture, nextFrame } from '@open-wc/testing';
import { spy } from 'sinon';
import { useListbox } from '../src/listbox/use-listbox';
Expand Down

0 comments on commit d367046

Please sign in to comment.