@wix/editor-react-components 1.2782.0 → 1.2783.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.
|
@@ -36,6 +36,7 @@ export type ITextInputMapperProps = {
|
|
|
36
36
|
/** Controlled value. Omission renders an empty input; edits require a parent update. */
|
|
37
37
|
value?: string;
|
|
38
38
|
onValueChange?: (value: string) => void;
|
|
39
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
39
40
|
label?: string;
|
|
40
41
|
placeholder?: string;
|
|
41
42
|
helperText?: string;
|
|
@@ -212,6 +212,7 @@ const TextInput = (props) => {
|
|
|
212
212
|
disabled,
|
|
213
213
|
autoFocus,
|
|
214
214
|
onValueChange = noop,
|
|
215
|
+
onKeyDown,
|
|
215
216
|
a11y,
|
|
216
217
|
contentRef,
|
|
217
218
|
elementProps,
|
|
@@ -274,6 +275,7 @@ const TextInput = (props) => {
|
|
|
274
275
|
placeholder,
|
|
275
276
|
className: inputClasses,
|
|
276
277
|
id: `input_${id}`,
|
|
278
|
+
onKeyDown,
|
|
277
279
|
"aria-invalid": ariaInvalid,
|
|
278
280
|
...ariaLabel && { "aria-label": ariaLabel },
|
|
279
281
|
...customAccessibleNameId && {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { I as INTERACTIONS, D as DATA, b as DISPLAY_GROUPS, E as ELEMENTS, C as CSS_PROPERTIES, N as NativeStateType, L as LAYOUT, A as Archetype } from "../chunks/chunk-EVX7ZUBD.js";
|
|
2
|
+
import { D as DomEventType } from "../chunks/types.impl.js";
|
|
2
3
|
import { D as DesignStates, a as DisplayNames, F as FunctionalStateKeys, c as componentClassNames } from "../chunks/constants3.js";
|
|
3
4
|
import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
|
|
4
5
|
const designState = (s, pseudoClass) => ({
|
|
@@ -335,6 +336,13 @@ const manifest = {
|
|
|
335
336
|
[DATA.DATA_TYPE.function]: {
|
|
336
337
|
parameters: [{ dataType: DATA.DATA_TYPE.text }]
|
|
337
338
|
}
|
|
339
|
+
},
|
|
340
|
+
onKeyDown: {
|
|
341
|
+
displayName: "On Key Down",
|
|
342
|
+
dataType: DATA.DATA_TYPE.function,
|
|
343
|
+
[DATA.DATA_TYPE.function]: {
|
|
344
|
+
parameters: [{ domEvent: DomEventType.KEYBOARD }]
|
|
345
|
+
}
|
|
338
346
|
}
|
|
339
347
|
},
|
|
340
348
|
interactions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2783.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -222,5 +222,5 @@
|
|
|
222
222
|
"registry": "https://registry.npmjs.org/",
|
|
223
223
|
"access": "public"
|
|
224
224
|
},
|
|
225
|
-
"falconPackageHash": "
|
|
225
|
+
"falconPackageHash": "1b5468b66f87cdeb99ce9b4ebcfc919e55de5f6b89ab37d921efb858"
|
|
226
226
|
}
|