@wix/editor-react-components 1.2298.0 → 1.2300.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.
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { A11y, Direction } from '@wix/editor-react-types';
|
|
2
2
|
import { SdkFunctionChangeableProps, SdkFunctionFocusableProps } from '../../../utils/functions/sdkFunctionCallbackProps';
|
|
3
|
-
export type TextBoxProps = SdkFunctionChangeableProps & SdkFunctionFocusableProps & {
|
|
3
|
+
export type TextBoxProps = Omit<SdkFunctionChangeableProps, 'onChange'> & SdkFunctionFocusableProps & {
|
|
4
4
|
id: string;
|
|
5
5
|
className: string;
|
|
6
6
|
value?: string;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
7
8
|
label: string;
|
|
8
9
|
tooltip?: string;
|
|
9
10
|
placeholder?: string;
|
|
@@ -28,12 +28,6 @@ const styles = {
|
|
|
28
28
|
};
|
|
29
29
|
const noop = () => {
|
|
30
30
|
};
|
|
31
|
-
const emitChange = (onChange, value) => {
|
|
32
|
-
onChange({
|
|
33
|
-
target: { value },
|
|
34
|
-
type: "change"
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
31
|
function TextBoxComponent(props) {
|
|
38
32
|
const environmentService = useService(EnvironmentDefinition);
|
|
39
33
|
const {
|
|
@@ -63,7 +57,7 @@ function TextBoxComponent(props) {
|
|
|
63
57
|
}
|
|
64
58
|
const handleValueChange = (next) => {
|
|
65
59
|
setValue(next);
|
|
66
|
-
|
|
60
|
+
onChange(next);
|
|
67
61
|
};
|
|
68
62
|
const hasLabel = !!label2;
|
|
69
63
|
const hasTooltip = !!tooltip2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2300.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@vimeo/player": "^2.20.1",
|
|
77
77
|
"@vis.gl/react-google-maps": "^1.5.2",
|
|
78
78
|
"@wix/services-manager-react": "^0.1.27",
|
|
79
|
-
"@wix/site-ui": "1.
|
|
79
|
+
"@wix/site-ui": "1.139.0",
|
|
80
80
|
"@wix/video": "^1.85.0",
|
|
81
81
|
"@wix/wix-ui-icons-common": "^3.173.0",
|
|
82
82
|
"bidi-js": "^1.0.3",
|
|
@@ -186,5 +186,5 @@
|
|
|
186
186
|
"registry": "https://registry.npmjs.org/",
|
|
187
187
|
"access": "public"
|
|
188
188
|
},
|
|
189
|
-
"falconPackageHash": "
|
|
189
|
+
"falconPackageHash": "aa3b9b4bb9cd085ecfb2c52b921f0d668382b7d162b88e6c566353a7"
|
|
190
190
|
}
|