Skip to content

Commit

Permalink
fix(common): switch back to autocompleter with ESM build (#1450)
Browse files Browse the repository at this point in the history
- the PR that I've opened on the `autocompleter` repo got merged and released, so I can switch back to the original repo and take advantage of the new ESM build
  • Loading branch information
ghiscoding committed Apr 2, 2024
1 parent 11b565e commit ad66a12
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/common/package.json
Expand Up @@ -72,7 +72,7 @@
"@slickgrid-universal/utils": "workspace:~",
"@types/dompurify": "^3.0.5",
"@types/sortablejs": "^1.15.8",
"autocompleter-es": "^9.1.4",
"autocompleter": "^9.2.0",
"dequal": "^2.0.3",
"excel-builder-vanilla": "3.0.1",
"flatpickr": "^4.6.13",
Expand Down
@@ -1,4 +1,4 @@
import type { AutocompleteItem } from 'autocompleter-es';
import type { AutocompleteItem } from 'autocompleter';

import type { AutocompleterOption } from '../interfaces/index';

Expand Down
4 changes: 2 additions & 2 deletions packages/common/src/editors/autocompleterEditor.ts
@@ -1,5 +1,5 @@
import autocompleter from 'autocompleter-es';
import type { AutocompleteItem, AutocompleteResult, AutocompleteSettings } from 'autocompleter-es';
import autocompleter from 'autocompleter';
import type { AutocompleteItem, AutocompleteResult, AutocompleteSettings } from 'autocompleter';
import { BindingEventService } from '@slickgrid-universal/binding';
import { classNameToList, createDomElement, isObject, isPrimitiveValue, setDeepValue, toKebabCase } from '@slickgrid-universal/utils';

Expand Down
4 changes: 2 additions & 2 deletions packages/common/src/filters/autocompleterFilter.ts
@@ -1,5 +1,5 @@
import autocompleter from 'autocompleter-es';
import type { AutocompleteItem, AutocompleteSettings } from 'autocompleter-es';
import autocompleter from 'autocompleter';
import type { AutocompleteItem, AutocompleteSettings } from 'autocompleter';
import { BindingEventService } from '@slickgrid-universal/binding';
import { classNameToList, createDomElement, emptyElement, isPrimitiveValue, toKebabCase, toSentenceCase } from '@slickgrid-universal/utils';

Expand Down
@@ -1,4 +1,4 @@
import type { AutocompleteItem, AutocompleteSettings } from 'autocompleter-es';
import type { AutocompleteItem, AutocompleteSettings } from 'autocompleter';
import type { Column } from './column.interface';

export interface AutoCompleterRenderItemDefinition {
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ad66a12

Please sign in to comment.