@snack-uikit/fields 0.54.1-preview-1078c3b3.0 → 0.55.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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
+ # 0.55.0 (2026-04-21)
7
+
8
+
9
+ ### Features
10
+
11
+ * **IAM-6423:** re-export custom option hooks ([067fd9b](https://github.com/cloud-ru-tech/snack-uikit/commit/067fd9b98a0be675d3d9fe8fe3d1b1f13a6813db))
12
+
13
+
14
+
15
+
16
+
6
17
  # 0.54.0 (2026-04-21)
7
18
 
8
19
 
@@ -60,7 +60,7 @@ exports.FieldSelectSingle = (0, react_1.forwardRef)((props, ref) => {
60
60
  prefix,
61
61
  postfix,
62
62
  addOptionByEnter = false,
63
- addCustomOptionTriggers: addCustomOptionTriggersProp,
63
+ addCustomOptionTriggers,
64
64
  untouchableScrollbars = false,
65
65
  open: openProp,
66
66
  onOpenChange,
@@ -178,7 +178,7 @@ exports.FieldSelectSingle = (0, react_1.forwardRef)((props, ref) => {
178
178
  resolvedAddCustomOptionTriggers,
179
179
  tryCommitCustomOptionFromInput
180
180
  } = (0, hooks_2.useFieldSelectSingleCustomOption)({
181
- addCustomOptionTriggers: addCustomOptionTriggersProp,
181
+ addCustomOptionTriggers,
182
182
  addOptionByEnter,
183
183
  inputValue,
184
184
  handleSelectionChange
@@ -29,7 +29,7 @@ const defaultSelectedOptionFormatter = item =>
29
29
  // @ts-expect-error
30
30
  (item === null || item === void 0 ? void 0 : item.content.option) || '';
31
31
  export const FieldSelectSingle = forwardRef((props, ref) => {
32
- const { id, name, placeholder, size = 's', options, value: valueProp, defaultValue, onChange: onChangeProp, disabled = false, readonly = false, searchable = true, showCopyButton = true, showClearButton = true, onKeyDown: onInputKeyDownProp, required = false, validationState = 'default', search, autocomplete = false, prefixIcon, prefix, postfix, addOptionByEnter = false, addCustomOptionTriggers: addCustomOptionTriggersProp, untouchableScrollbars = false, open: openProp, onOpenChange, selectedOptionFormatter = defaultSelectedOptionFormatter, enableFuzzySearch = true, resetSearchOnOptionSelection = true, onCopyButtonClick, autoFocus } = props, rest = __rest(props, ["id", "name", "placeholder", "size", "options", "value", "defaultValue", "onChange", "disabled", "readonly", "searchable", "showCopyButton", "showClearButton", "onKeyDown", "required", "validationState", "search", "autocomplete", "prefixIcon", "prefix", "postfix", "addOptionByEnter", "addCustomOptionTriggers", "untouchableScrollbars", "open", "onOpenChange", "selectedOptionFormatter", "enableFuzzySearch", "resetSearchOnOptionSelection", "onCopyButtonClick", "autoFocus"]);
32
+ const { id, name, placeholder, size = 's', options, value: valueProp, defaultValue, onChange: onChangeProp, disabled = false, readonly = false, searchable = true, showCopyButton = true, showClearButton = true, onKeyDown: onInputKeyDownProp, required = false, validationState = 'default', search, autocomplete = false, prefixIcon, prefix, postfix, addOptionByEnter = false, addCustomOptionTriggers, untouchableScrollbars = false, open: openProp, onOpenChange, selectedOptionFormatter = defaultSelectedOptionFormatter, enableFuzzySearch = true, resetSearchOnOptionSelection = true, onCopyButtonClick, autoFocus } = props, rest = __rest(props, ["id", "name", "placeholder", "size", "options", "value", "defaultValue", "onChange", "disabled", "readonly", "searchable", "showCopyButton", "showClearButton", "onKeyDown", "required", "validationState", "search", "autocomplete", "prefixIcon", "prefix", "postfix", "addOptionByEnter", "addCustomOptionTriggers", "untouchableScrollbars", "open", "onOpenChange", "selectedOptionFormatter", "enableFuzzySearch", "resetSearchOnOptionSelection", "onCopyButtonClick", "autoFocus"]);
33
33
  const localRef = useRef(null);
34
34
  const [open = false, setOpen] = useValueControl({ value: openProp, onChange: onOpenChange });
35
35
  const [value, setValue] = useValueControl({
@@ -91,7 +91,7 @@ export const FieldSelectSingle = forwardRef((props, ref) => {
91
91
  }
92
92
  }, [setOpen, setValue]);
93
93
  const { resolvedAddCustomOptionTriggers, tryCommitCustomOptionFromInput } = useFieldSelectSingleCustomOption({
94
- addCustomOptionTriggers: addCustomOptionTriggersProp,
94
+ addCustomOptionTriggers,
95
95
  addOptionByEnter,
96
96
  inputValue,
97
97
  handleSelectionChange,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Fields",
7
- "version": "0.54.1-preview-1078c3b3.0",
7
+ "version": "0.55.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -37,13 +37,13 @@
37
37
  "scripts": {},
38
38
  "dependencies": {
39
39
  "@snack-uikit/button": "0.19.17",
40
- "@snack-uikit/calendar": "0.13.19-preview-1078c3b3.0",
40
+ "@snack-uikit/calendar": "0.13.19",
41
41
  "@snack-uikit/color-picker": "0.3.55",
42
42
  "@snack-uikit/divider": "3.2.11",
43
43
  "@snack-uikit/dropdown": "0.5.5",
44
44
  "@snack-uikit/icons": "0.27.7",
45
45
  "@snack-uikit/input-private": "4.8.8",
46
- "@snack-uikit/list": "0.32.18-preview-1078c3b3.0",
46
+ "@snack-uikit/list": "0.33.0",
47
47
  "@snack-uikit/scroll": "0.10.8",
48
48
  "@snack-uikit/skeleton": "0.6.10",
49
49
  "@snack-uikit/slider": "0.3.36",
@@ -66,5 +66,5 @@
66
66
  "peerDependencies": {
67
67
  "@snack-uikit/locale": "*"
68
68
  },
69
- "gitHead": "6f8ddf7c32ffb97788c0a36d8e897594d4ac7370"
69
+ "gitHead": "c61cd024708846e7fc958d7fcdd082bd593b52db"
70
70
  }
@@ -60,7 +60,7 @@ export const FieldSelectSingle = forwardRef<HTMLInputElement, FieldSelectSingleP
60
60
  prefix,
61
61
  postfix,
62
62
  addOptionByEnter = false,
63
- addCustomOptionTriggers: addCustomOptionTriggersProp,
63
+ addCustomOptionTriggers,
64
64
  untouchableScrollbars = false,
65
65
  open: openProp,
66
66
  onOpenChange,
@@ -157,7 +157,7 @@ export const FieldSelectSingle = forwardRef<HTMLInputElement, FieldSelectSingleP
157
157
  );
158
158
 
159
159
  const { resolvedAddCustomOptionTriggers, tryCommitCustomOptionFromInput } = useFieldSelectSingleCustomOption({
160
- addCustomOptionTriggers: addCustomOptionTriggersProp,
160
+ addCustomOptionTriggers,
161
161
  addOptionByEnter,
162
162
  inputValue,
163
163
  handleSelectionChange,