@cloud-ru/uikit-product-claudia 1.9.1 → 1.10.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 +23 -0
- package/dist/cjs/components/SshField/SshField.js +5 -1
- package/dist/cjs/components/SshField/components/MobileFieldAi/MobileFieldAi.js +2 -2
- package/dist/esm/components/SshField/SshField.js +5 -1
- package/dist/esm/components/SshField/components/MobileFieldAi/MobileFieldAi.js +2 -2
- package/package.json +6 -6
- package/src/components/SshField/SshField.tsx +5 -1
- package/src/components/SshField/components/MobileFieldAi/MobileFieldAi.tsx +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
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.10.0 (2025-12-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **AINFR-4628:** vibe ops scenario ([65bdd10](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/65bdd107b6d0cbd4b6162c5bae5d0a4b6ccc0b88))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 1.9.2 (2025-12-08)
|
|
18
|
+
|
|
19
|
+
### Only dependencies have been changed
|
|
20
|
+
* [@cloud-ru/uikit-product-icons@16.0.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
|
|
21
|
+
* [@cloud-ru/uikit-product-mobile-dropdown@0.9.29](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/mobile-dropdown/CHANGELOG.md)
|
|
22
|
+
* [@cloud-ru/uikit-product-mobile-fields@0.12.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/mobile-fields/CHANGELOG.md)
|
|
23
|
+
* [@cloud-ru/uikit-product-utils@8.0.2](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
## 1.9.1 (2025-12-03)
|
|
7
30
|
|
|
8
31
|
### Only dependencies have been changed
|
|
@@ -133,5 +133,9 @@ exports.SshField = (0, react_1.forwardRef)((_a, ref) => {
|
|
|
133
133
|
if (isTouchDevice) {
|
|
134
134
|
return ((0, jsx_runtime_1.jsx)(MobileFieldAi_1.MobileFieldAi, Object.assign({}, props, (0, uikit_product_mobile_fields_1.getAdaptiveFieldProps)(props), { onSubmit: handleSubmit, submitEnabled: isValueValid && !disabled, ref: ref, value: value })));
|
|
135
135
|
}
|
|
136
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(styles_module_scss_1.default.wrapper, className), onDragOver: handleDragOver, onDragLeave: handleDragLeave, children: [(0, jsx_runtime_1.jsx)(ChatStatusAnnouncement_1.ChatStatusAnnouncement, { className: styles_module_scss_1.default.chatStatus, layoutType: layoutType, icon: (0, jsx_runtime_1.jsx)(uikit_product_icons_1.PasswordLockSVG, { size: 16, color: figma_tokens_1.themeVars.sys.neutral.textSupport }), content:
|
|
136
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(styles_module_scss_1.default.wrapper, className), onDragOver: handleDragOver, onDragLeave: handleDragLeave, children: [(0, jsx_runtime_1.jsx)(ChatStatusAnnouncement_1.ChatStatusAnnouncement, { className: styles_module_scss_1.default.chatStatus, layoutType: layoutType, icon: (0, jsx_runtime_1.jsx)(uikit_product_icons_1.PasswordLockSVG, { size: 16, color: figma_tokens_1.themeVars.sys.neutral.textSupport }), content: [
|
|
137
|
+
{ content: t('SshField.chatStatusAnnouncement.content.option1') },
|
|
138
|
+
{ content: t('SshField.chatStatusAnnouncement.content.option2'), shouldFocusOnHover: true },
|
|
139
|
+
{ content: t('SshField.chatStatusAnnouncement.content.option3') },
|
|
140
|
+
], actionLabel: t('SshField.chatStatusAnnouncement.cancel'), onActionClick: onCancel }), isDragOver ? ((0, jsx_runtime_1.jsx)(drop_zone_1.DropZone, { description: (0, jsx_runtime_1.jsx)(DropZoneContent_1.DropZoneContent, {}), className: styles_module_scss_1.default.dropZone, mode: 'single', onFilesUpload: (files) => onFileUpload(files[0]) })) : ((0, jsx_runtime_1.jsx)(uikit_product_mobile_fields_1.AdaptiveFieldTextArea, Object.assign({}, props, { ref: ref, value: value, onChange: handleChange, size: 'm', disabled: isLoading, minRows: 2, maxRows: 4, placeholder: t('SshField.placeholder'), className: isValueHidden ? styles_module_scss_1.default.secured : undefined, onKeyDown: handleKeyDown, validationState: showFileError ? 'error' : validationState, hint: showFileError && fileErrorType ? getErrorMessage(fileErrorType) : props.hint, footer: (0, jsx_runtime_1.jsx)(TextAreaActionsFooter_1.TextAreaActionsFooter, { left: (0, jsx_runtime_1.jsx)(button_1.ButtonFunction, { size: 'xs', icon: isValueHidden ? (0, jsx_runtime_1.jsx)(uikit_product_icons_1.EyeSVG, {}) : (0, jsx_runtime_1.jsx)(uikit_product_icons_1.EyeClosedSVG, {}), onClick: () => setIsValueHidden(prev => !prev), disabled: isLoading }), right: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(tooltip_1.Tooltip, { tip: t('SshField.attachFileTooltip'), hoverDelayOpen: 600, triggerClassName: styles_module_scss_1.default.uploadTooltip, open: isTouchDevice ? false : undefined, children: (0, jsx_runtime_1.jsx)(drop_zone_1.FileUpload, { mode: 'single', onFilesUpload: (files) => onFileUpload(files[0]), children: (0, jsx_runtime_1.jsx)(button_1.ButtonFunction, { disabled: isLoading, size: isTouchDevice ? 's' : 'xs', icon: (0, jsx_runtime_1.jsx)(uikit_product_icons_1.AttachmentSVG, {}) }) }) }), (0, jsx_runtime_1.jsx)(FieldSubmitButton_1.FieldSubmitButton, { disabled: isLoading, showTooltip: !isTouchDevice, className: isTouchDevice ? styles_module_scss_1.default.mobileSubmitButton : undefined, active: isValueValid && !disabled, handleClick: handleSubmit, size: isTouchDevice ? 's' : 'xs' })] }) }) })))] }));
|
|
137
141
|
});
|
|
@@ -30,6 +30,6 @@ const MIN_ROWS = 1;
|
|
|
30
30
|
const MAX_ROWS = 6;
|
|
31
31
|
exports.MobileFieldAi = (0, react_1.forwardRef)((_a, ref) => {
|
|
32
32
|
var { onSubmit, value, submitEnabled } = _a, props = __rest(_a, ["onSubmit", "value", "submitEnabled"]);
|
|
33
|
-
const { t } = (0, uikit_product_locale_1.useLocale)('
|
|
34
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.mobileInputWrapper, style: { '--max-rows': MAX_ROWS, '--min-rows': MIN_ROWS }, "data-size": 'm', children: [(0, jsx_runtime_1.jsx)(scroll_1.Scroll, { className: styles_module_scss_1.default.scrollContainer, size: 's', barHideStrategy: 'never', children: (0, jsx_runtime_1.jsx)(TextArea_1.TextArea, Object.assign({}, props, { className: styles_module_scss_1.default.textarea, ref: ref, value: value, minRows: MIN_ROWS, placeholder: t('
|
|
33
|
+
const { t } = (0, uikit_product_locale_1.useLocale)('Claudia');
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.mobileInputWrapper, style: { '--max-rows': MAX_ROWS, '--min-rows': MIN_ROWS }, "data-size": 'm', children: [(0, jsx_runtime_1.jsx)(scroll_1.Scroll, { className: styles_module_scss_1.default.scrollContainer, size: 's', barHideStrategy: 'never', children: (0, jsx_runtime_1.jsx)(TextArea_1.TextArea, Object.assign({}, props, { className: styles_module_scss_1.default.textarea, ref: ref, value: value, minRows: MIN_ROWS, placeholder: t('SshField.placeholder'), spellCheck: true })) }), (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.mobileSubmitButtonWrapper, children: [(0, jsx_runtime_1.jsx)(tooltip_1.Tooltip, { disableSpanWrapper: true, tip: t('SshField.attachFileTooltip'), hoverDelayOpen: 600, triggerClassName: styles_module_scss_1.default.uploadTooltip, children: (0, jsx_runtime_1.jsx)(drop_zone_1.FileUpload, { mode: 'multiple', onFilesUpload: () => { }, children: (0, jsx_runtime_1.jsx)(button_1.ButtonFunction, { size: 's', icon: (0, jsx_runtime_1.jsx)(uikit_product_icons_1.AttachmentSVG, {}) }) }) }), (0, jsx_runtime_1.jsx)(FieldSubmitButton_1.FieldSubmitButton, { showTooltip: false, className: styles_module_scss_1.default.mobileSubmitButton, fullWidth: true, active: submitEnabled, handleClick: onSubmit, size: 's' })] })] }));
|
|
35
35
|
});
|
|
@@ -127,5 +127,9 @@ export const SshField = forwardRef((_a, ref) => {
|
|
|
127
127
|
if (isTouchDevice) {
|
|
128
128
|
return (_jsx(MobileFieldAi, Object.assign({}, props, getAdaptiveFieldProps(props), { onSubmit: handleSubmit, submitEnabled: isValueValid && !disabled, ref: ref, value: value })));
|
|
129
129
|
}
|
|
130
|
-
return (_jsxs("div", { className: cn(styles.wrapper, className), onDragOver: handleDragOver, onDragLeave: handleDragLeave, children: [_jsx(ChatStatusAnnouncement, { className: styles.chatStatus, layoutType: layoutType, icon: _jsx(PasswordLockSVG, { size: 16, color: themeVars.sys.neutral.textSupport }), content:
|
|
130
|
+
return (_jsxs("div", { className: cn(styles.wrapper, className), onDragOver: handleDragOver, onDragLeave: handleDragLeave, children: [_jsx(ChatStatusAnnouncement, { className: styles.chatStatus, layoutType: layoutType, icon: _jsx(PasswordLockSVG, { size: 16, color: themeVars.sys.neutral.textSupport }), content: [
|
|
131
|
+
{ content: t('SshField.chatStatusAnnouncement.content.option1') },
|
|
132
|
+
{ content: t('SshField.chatStatusAnnouncement.content.option2'), shouldFocusOnHover: true },
|
|
133
|
+
{ content: t('SshField.chatStatusAnnouncement.content.option3') },
|
|
134
|
+
], actionLabel: t('SshField.chatStatusAnnouncement.cancel'), onActionClick: onCancel }), isDragOver ? (_jsx(DropZone, { description: _jsx(DropZoneContent, {}), className: styles.dropZone, mode: 'single', onFilesUpload: (files) => onFileUpload(files[0]) })) : (_jsx(AdaptiveFieldTextArea, Object.assign({}, props, { ref: ref, value: value, onChange: handleChange, size: 'm', disabled: isLoading, minRows: 2, maxRows: 4, placeholder: t('SshField.placeholder'), className: isValueHidden ? styles.secured : undefined, onKeyDown: handleKeyDown, validationState: showFileError ? 'error' : validationState, hint: showFileError && fileErrorType ? getErrorMessage(fileErrorType) : props.hint, footer: _jsx(TextAreaActionsFooter, { left: _jsx(ButtonFunction, { size: 'xs', icon: isValueHidden ? _jsx(EyeSVG, {}) : _jsx(EyeClosedSVG, {}), onClick: () => setIsValueHidden(prev => !prev), disabled: isLoading }), right: _jsxs(_Fragment, { children: [_jsx(Tooltip, { tip: t('SshField.attachFileTooltip'), hoverDelayOpen: 600, triggerClassName: styles.uploadTooltip, open: isTouchDevice ? false : undefined, children: _jsx(FileUpload, { mode: 'single', onFilesUpload: (files) => onFileUpload(files[0]), children: _jsx(ButtonFunction, { disabled: isLoading, size: isTouchDevice ? 's' : 'xs', icon: _jsx(AttachmentSVG, {}) }) }) }), _jsx(FieldSubmitButton, { disabled: isLoading, showTooltip: !isTouchDevice, className: isTouchDevice ? styles.mobileSubmitButton : undefined, active: isValueValid && !disabled, handleClick: handleSubmit, size: isTouchDevice ? 's' : 'xs' })] }) }) })))] }));
|
|
131
135
|
});
|
|
@@ -24,6 +24,6 @@ const MIN_ROWS = 1;
|
|
|
24
24
|
const MAX_ROWS = 6;
|
|
25
25
|
export const MobileFieldAi = forwardRef((_a, ref) => {
|
|
26
26
|
var { onSubmit, value, submitEnabled } = _a, props = __rest(_a, ["onSubmit", "value", "submitEnabled"]);
|
|
27
|
-
const { t } = useLocale('
|
|
28
|
-
return (_jsxs("div", { className: styles.mobileInputWrapper, style: { '--max-rows': MAX_ROWS, '--min-rows': MIN_ROWS }, "data-size": 'm', children: [_jsx(Scroll, { className: styles.scrollContainer, size: 's', barHideStrategy: 'never', children: _jsx(TextArea, Object.assign({}, props, { className: styles.textarea, ref: ref, value: value, minRows: MIN_ROWS, placeholder: t('
|
|
27
|
+
const { t } = useLocale('Claudia');
|
|
28
|
+
return (_jsxs("div", { className: styles.mobileInputWrapper, style: { '--max-rows': MAX_ROWS, '--min-rows': MIN_ROWS }, "data-size": 'm', children: [_jsx(Scroll, { className: styles.scrollContainer, size: 's', barHideStrategy: 'never', children: _jsx(TextArea, Object.assign({}, props, { className: styles.textarea, ref: ref, value: value, minRows: MIN_ROWS, placeholder: t('SshField.placeholder'), spellCheck: true })) }), _jsxs("div", { className: styles.mobileSubmitButtonWrapper, children: [_jsx(Tooltip, { disableSpanWrapper: true, tip: t('SshField.attachFileTooltip'), hoverDelayOpen: 600, triggerClassName: styles.uploadTooltip, children: _jsx(FileUpload, { mode: 'multiple', onFilesUpload: () => { }, children: _jsx(ButtonFunction, { size: 's', icon: _jsx(AttachmentSVG, {}) }) }) }), _jsx(FieldSubmitButton, { showTooltip: false, className: styles.mobileSubmitButton, fullWidth: true, active: submitEnabled, handleClick: onSubmit, size: 's' })] })] }));
|
|
29
29
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/uikit-product-claudia",
|
|
3
3
|
"title": "Claudia",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.10.0",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
7
7
|
"*.woff",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@cloud-ru/uikit-product-icons": "16.0.
|
|
40
|
-
"@cloud-ru/uikit-product-mobile-dropdown": "0.9.
|
|
41
|
-
"@cloud-ru/uikit-product-mobile-fields": "0.12.
|
|
42
|
-
"@cloud-ru/uikit-product-utils": "8.0.
|
|
39
|
+
"@cloud-ru/uikit-product-icons": "16.0.1",
|
|
40
|
+
"@cloud-ru/uikit-product-mobile-dropdown": "0.9.29",
|
|
41
|
+
"@cloud-ru/uikit-product-mobile-fields": "0.12.1",
|
|
42
|
+
"@cloud-ru/uikit-product-utils": "8.0.2",
|
|
43
43
|
"@snack-uikit/button": "0.19.16",
|
|
44
44
|
"@snack-uikit/divider": "3.2.3",
|
|
45
45
|
"@snack-uikit/drop-zone": "0.9.6",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"@cloud-ru/uikit-product-locale": "*",
|
|
62
62
|
"@snack-uikit/figma-tokens": "*"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "1fe3ac6a113f8d464ebbd481d139b20d8e8653d8"
|
|
65
65
|
}
|
|
@@ -152,7 +152,11 @@ export const SshField = forwardRef<HTMLTextAreaElement, SshFieldProps>(
|
|
|
152
152
|
className={styles.chatStatus}
|
|
153
153
|
layoutType={layoutType}
|
|
154
154
|
icon={<PasswordLockSVG size={16} color={themeVars.sys.neutral.textSupport} />}
|
|
155
|
-
content={
|
|
155
|
+
content={[
|
|
156
|
+
{ content: t('SshField.chatStatusAnnouncement.content.option1') },
|
|
157
|
+
{ content: t('SshField.chatStatusAnnouncement.content.option2'), shouldFocusOnHover: true },
|
|
158
|
+
{ content: t('SshField.chatStatusAnnouncement.content.option3') },
|
|
159
|
+
]}
|
|
156
160
|
actionLabel={t('SshField.chatStatusAnnouncement.cancel')}
|
|
157
161
|
onActionClick={onCancel}
|
|
158
162
|
/>
|
|
@@ -25,7 +25,7 @@ const MAX_ROWS = 6;
|
|
|
25
25
|
|
|
26
26
|
export const MobileFieldAi = forwardRef<HTMLTextAreaElement, MobileFieldAiProps>(
|
|
27
27
|
({ onSubmit, value, submitEnabled, ...props }, ref) => {
|
|
28
|
-
const { t } = useLocale('
|
|
28
|
+
const { t } = useLocale('Claudia');
|
|
29
29
|
|
|
30
30
|
return (
|
|
31
31
|
<div
|
|
@@ -40,7 +40,7 @@ export const MobileFieldAi = forwardRef<HTMLTextAreaElement, MobileFieldAiProps>
|
|
|
40
40
|
ref={ref}
|
|
41
41
|
value={value}
|
|
42
42
|
minRows={MIN_ROWS}
|
|
43
|
-
placeholder={t('
|
|
43
|
+
placeholder={t('SshField.placeholder')}
|
|
44
44
|
spellCheck={true}
|
|
45
45
|
/>
|
|
46
46
|
</Scroll>
|
|
@@ -48,7 +48,7 @@ export const MobileFieldAi = forwardRef<HTMLTextAreaElement, MobileFieldAiProps>
|
|
|
48
48
|
<div className={styles.mobileSubmitButtonWrapper}>
|
|
49
49
|
<Tooltip
|
|
50
50
|
disableSpanWrapper
|
|
51
|
-
tip={t('
|
|
51
|
+
tip={t('SshField.attachFileTooltip')}
|
|
52
52
|
hoverDelayOpen={600}
|
|
53
53
|
triggerClassName={styles.uploadTooltip}
|
|
54
54
|
>
|