@synerise/ds-autocomplete 1.2.42 → 1.2.43

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.2.43](https://github.com/Synerise/synerise-design/compare/@synerise/ds-autocomplete@1.2.42...@synerise/ds-autocomplete@1.2.43) (2026-05-04)
7
+
8
+ ### Bug Fixes
9
+
10
+ - add exports field to all component packages for correct ESM detection ([6eccfde](https://github.com/Synerise/synerise-design/commit/6eccfde8f2dd73c59860793231fbd7bcd61813b4))
11
+
6
12
  ## [1.2.42](https://github.com/Synerise/synerise-design/compare/@synerise/ds-autocomplete@1.2.41...@synerise/ds-autocomplete@1.2.42) (2026-04-29)
7
13
 
8
14
  **Note:** Version bump only for package @synerise/ds-autocomplete
@@ -1,4 +1,4 @@
1
- import { default as AntdAutoComplete } from 'antd/lib/auto-complete';
1
+ import { AutoComplete as AntdAutoComplete } from 'antd';
2
2
  import { FC } from 'react';
3
3
  import { AutocompleteProps } from './Autocomplete.types';
4
4
  declare const Autocomplete: FC<AutocompleteProps> & {
@@ -1,5 +1,5 @@
1
1
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
- import AntdAutoComplete from "antd/lib/auto-complete";
2
+ import { AutoComplete } from "antd";
3
3
  import { useRef, useEffect, useCallback, useMemo } from "react";
4
4
  import FormField from "@synerise/ds-form-field";
5
5
  import { AutosizeWrapper } from "@synerise/ds-input";
@@ -82,11 +82,11 @@ const Autocomplete = ({
82
82
  ] }) });
83
83
  }, [handleIconsClick, icon1, icon2, icon1Tooltip, icon2Tooltip]);
84
84
  return /* @__PURE__ */ jsx(AutocompleteWrapper, { ref: elementRef, autoResize, className: `ds-autocomplete ${className || ""}`, children: /* @__PURE__ */ jsx(FormField, { label, tooltip, tooltipConfig, description, errorText, children: /* @__PURE__ */ jsx(ComponentWrapper, { readOnly, error: !!errorText || error, iconCount, children: /* @__PURE__ */ jsxs(AutosizeWrapper, { autoResize: !!autoResize, value: rest.value, placeholder: placeholderString, transformRef, ref: autosizeRef, extraWidth: AUTOSIZE_EXTRA_WIDTH + getIconsWidth(iconCount), preAutosize: handlePreAutosize, onAutosize: handleAutosize, children: [
85
- /* @__PURE__ */ jsx(AntdAutoComplete, { ...rest, disabled: readOnly || disabled, dropdownClassName: "ds-autocomplete-dropdown ps__child--consume", getPopupContainer: getPopupContainer || getParentNode, ref: antSelectRef, "data-testid": "autocomplete-autosize-input" }),
85
+ /* @__PURE__ */ jsx(AutoComplete, { ...rest, disabled: readOnly || disabled, dropdownClassName: "ds-autocomplete-dropdown ps__child--consume", getPopupContainer: getPopupContainer || getParentNode, ref: antSelectRef, "data-testid": "autocomplete-autosize-input" }),
86
86
  icons
87
87
  ] }) }) }) });
88
88
  };
89
- Autocomplete.Option = AntdAutoComplete.Option;
89
+ Autocomplete.Option = AutoComplete.Option;
90
90
  export {
91
91
  Autocomplete as default
92
92
  };
@@ -1,5 +1,4 @@
1
- import { AutoCompleteProps as OriginalProps } from 'antd/lib/auto-complete';
2
- import { RefSelectProps } from 'antd/lib/select';
1
+ import { AutoCompleteProps as OriginalProps, RefSelectProps } from 'antd';
3
2
  import { MutableRefObject, ReactNode } from 'react';
4
3
  import { FormFieldCommonProps } from '@synerise/ds-form-field';
5
4
  import { AutoResizeProp } from '@synerise/ds-input';
package/package.json CHANGED
@@ -1,10 +1,19 @@
1
1
  {
2
2
  "name": "@synerise/ds-autocomplete",
3
- "version": "1.2.42",
3
+ "version": "1.2.43",
4
4
  "description": "Autocomplete UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
7
7
  "main": "dist/index.js",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "./dist/*.js": "./dist/*.js",
15
+ "./dist/*": "./dist/*.js"
16
+ },
8
17
  "files": [
9
18
  "/dist",
10
19
  "CHANGELOG.md",
@@ -32,10 +41,10 @@
32
41
  ],
33
42
  "types": "dist/index.d.ts",
34
43
  "dependencies": {
35
- "@synerise/ds-form-field": "^1.3.17",
36
- "@synerise/ds-input": "^1.7.5",
37
- "@synerise/ds-tooltip": "^1.4.17",
38
- "@synerise/ds-utils": "^1.8.0"
44
+ "@synerise/ds-form-field": "^1.3.18",
45
+ "@synerise/ds-input": "^1.7.6",
46
+ "@synerise/ds-tooltip": "^1.4.18",
47
+ "@synerise/ds-utils": "^1.8.1"
39
48
  },
40
49
  "peerDependencies": {
41
50
  "@synerise/ds-core": "*",
@@ -44,5 +53,5 @@
44
53
  "styled-components": "^5.3.3",
45
54
  "vitest": "4"
46
55
  },
47
- "gitHead": "82150f1e50f5a3e19682c68e4eec9ae441950327"
56
+ "gitHead": "c5eee882509cbeb4544cb45939620881b829d4d9"
48
57
  }