@jetbrains/ring-ui 5.1.17 → 5.1.18
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.
|
@@ -114,7 +114,7 @@ export const EditableHeading = (props) => {
|
|
|
114
114
|
<Shortcuts map={shortcutsMap} scope={shortcutsScope} disabled={isShortcutsDisabled}/>
|
|
115
115
|
|
|
116
116
|
{!multiline
|
|
117
|
-
? (<input className={inputClasses} value={children} autoFocus={autoFocus} data-test={dataTest} disabled={isSaving} {...restProps} onFocus={onInputFocus} onBlur={onInputBlur}/>)
|
|
117
|
+
? (<input className={inputClasses} value={children} autoFocus={autoFocus} data-test={dataTest} disabled={isSaving} onChange={onChange} {...restProps} onFocus={onInputFocus} onBlur={onInputBlur}/>)
|
|
118
118
|
: (<div ref={textAreaWrapperRef} className={classNames({ [styles.textareaWrapperFocused]: !isScrolledToBottom })}>
|
|
119
119
|
<textarea ref={textAreaRef} className={inputClasses} value={children} autoFocus={autoFocus} data-test={dataTest} disabled={isSaving} onChange={onInputChange} {...restProps} onFocus={onInputFocus} onBlur={onInputBlur} onScroll={onInputScroll} style={{ maxHeight: maxInputHeight }}/>
|
|
120
120
|
</div>)}
|
|
@@ -216,7 +216,8 @@ var EditableHeading = function EditableHeading(props) {
|
|
|
216
216
|
value: children,
|
|
217
217
|
autoFocus: autoFocus,
|
|
218
218
|
"data-test": dataTest,
|
|
219
|
-
disabled: isSaving
|
|
219
|
+
disabled: isSaving,
|
|
220
|
+
onChange: onChange
|
|
220
221
|
}, restProps, {
|
|
221
222
|
onFocus: onInputFocus,
|
|
222
223
|
onBlur: onInputBlur
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.18",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"readmeFilename": "README.md",
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@babel/cli": "^7.23.0",
|
|
79
|
-
"@babel/eslint-parser": "^7.
|
|
79
|
+
"@babel/eslint-parser": "^7.23.3",
|
|
80
80
|
"@csstools/stylelint-no-at-nest-rule": "^1.0.0",
|
|
81
81
|
"@jetbrains/eslint-config": "^5.4.1",
|
|
82
82
|
"@jetbrains/stylelint-config": "^4.0.1",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
87
87
|
"@rollup/plugin-replace": "^5.0.5",
|
|
88
88
|
"@storybook/addon-a11y": "7.5.3",
|
|
89
|
-
"@storybook/addon-docs": "7.5.
|
|
89
|
+
"@storybook/addon-docs": "7.5.3",
|
|
90
90
|
"@storybook/addon-essentials": "7.5.3",
|
|
91
91
|
"@storybook/addon-storyshots": "7.4.5",
|
|
92
92
|
"@storybook/addon-storyshots-puppeteer": "7.5.3",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@storybook/html-webpack5": "^7.5.3",
|
|
97
97
|
"@storybook/preview-api": "7.4.5",
|
|
98
98
|
"@storybook/react": "7.5.3",
|
|
99
|
-
"@storybook/source-loader": "7.5.
|
|
99
|
+
"@storybook/source-loader": "7.5.3",
|
|
100
100
|
"@storybook/theming": "7.5.3",
|
|
101
101
|
"@testing-library/react": "^14.0.0",
|
|
102
102
|
"@testing-library/user-event": "^14.5.1",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@types/chai-dom": "0.0.10",
|
|
106
106
|
"@types/chai-enzyme": "^0.6.12",
|
|
107
107
|
"@types/enzyme": "^3.10.16",
|
|
108
|
-
"@types/react": "^18.2.
|
|
108
|
+
"@types/react": "^18.2.37",
|
|
109
109
|
"@types/react-dom": "^18.2.14",
|
|
110
110
|
"@types/sinon": "^17.0.0",
|
|
111
111
|
"@types/sinon-chai": "^3.2.11",
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
"remark-gfm": "^3.0.1",
|
|
255
255
|
"scrollbar-width": "^3.1.1",
|
|
256
256
|
"simply-uuid": "^1.0.1",
|
|
257
|
-
"sniffr": "^1.
|
|
257
|
+
"sniffr": "^1.3.0",
|
|
258
258
|
"style-inject": "^0.3.0",
|
|
259
259
|
"style-loader": "~3.3.3",
|
|
260
260
|
"url-loader": "^4.1.1",
|
package/typings.d.ts
CHANGED
|
@@ -41,57 +41,3 @@ declare module 'scrollbar-width' {
|
|
|
41
41
|
recalculate?: boolean
|
|
42
42
|
): number | null;
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
declare module 'sniffr' {
|
|
46
|
-
enum Browser {
|
|
47
|
-
FIREFOX = 'firefox',
|
|
48
|
-
CHROME = 'chrome',
|
|
49
|
-
IE = 'ie',
|
|
50
|
-
SAFARI = 'safari',
|
|
51
|
-
EDGE = 'edge',
|
|
52
|
-
ANDROID = 'com.android.browser',
|
|
53
|
-
OPERA = 'opera',
|
|
54
|
-
OPERA_MINI = 'opera.mini',
|
|
55
|
-
BLACKBERRY = 'blackberry',
|
|
56
|
-
ICEWEASEL = 'iceweasel',
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
enum OS {
|
|
60
|
-
LINUX = 'linux',
|
|
61
|
-
MACOS = 'macos',
|
|
62
|
-
WINDOWS = 'windows',
|
|
63
|
-
IOS = 'ios',
|
|
64
|
-
OPENBSD = 'openbsd',
|
|
65
|
-
ANDROID = 'android',
|
|
66
|
-
FIREFOXOS = 'firefoxos',
|
|
67
|
-
WINDOWS_PHONE = 'windows.phone',
|
|
68
|
-
WINDOWS_MOBILE = 'windows.mobile',
|
|
69
|
-
BLACKBERRYOS = 'blackberryos',
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
enum Device {
|
|
73
|
-
IPAD = 'ipad',
|
|
74
|
-
IPHONE = 'iphone',
|
|
75
|
-
LUMIA = 'lumia',
|
|
76
|
-
HTC = 'htc',
|
|
77
|
-
NEXUS = 'nexus',
|
|
78
|
-
GALAXY_NEXUS = 'galaxy.nexus',
|
|
79
|
-
NOKIA = 'nokia',
|
|
80
|
-
GALAXY = 'galaxy',
|
|
81
|
-
XBOX = 'xbox',
|
|
82
|
-
BLACKBERRY = 'blackberry',
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface SnifferProperty<T extends string> {
|
|
86
|
-
name: T | 'Unknown'
|
|
87
|
-
version: number[]
|
|
88
|
-
versionString: string
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export default class Sniffer {
|
|
92
|
-
os: SnifferProperty<OS>;
|
|
93
|
-
device: SnifferProperty<Device>;
|
|
94
|
-
browser: SnifferProperty<Browser>;
|
|
95
|
-
sniff(userAgentString?: string): this
|
|
96
|
-
}
|
|
97
|
-
}
|