@measured/puck 0.19.0-canary.84a836b → 0.19.0-canary.ad78e98

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/dist/index.js CHANGED
@@ -4070,10 +4070,13 @@ function AutoFieldPrivate(props) {
4070
4070
  const isFocused = useAppStore((s) => s.state.ui.field.focus === props.name);
4071
4071
  const { value, onChange } = props;
4072
4072
  const [localValue, setLocalValue] = (0, import_react24.useState)(value);
4073
- const onChangeLocal = (0, import_react24.useCallback)((val, ui) => {
4074
- setLocalValue(val);
4075
- onChange(val, ui);
4076
- }, []);
4073
+ const onChangeLocal = (0, import_react24.useCallback)(
4074
+ (val, ui) => {
4075
+ setLocalValue(val);
4076
+ onChange(val, ui);
4077
+ },
4078
+ [onChange]
4079
+ );
4077
4080
  (0, import_react24.useEffect)(() => {
4078
4081
  if (!isFocused) {
4079
4082
  setLocalValue(value);
package/dist/index.mjs CHANGED
@@ -3884,10 +3884,13 @@ function AutoFieldPrivate(props) {
3884
3884
  const isFocused = useAppStore((s) => s.state.ui.field.focus === props.name);
3885
3885
  const { value, onChange } = props;
3886
3886
  const [localValue, setLocalValue] = useState9(value);
3887
- const onChangeLocal = useCallback4((val, ui) => {
3888
- setLocalValue(val);
3889
- onChange(val, ui);
3890
- }, []);
3887
+ const onChangeLocal = useCallback4(
3888
+ (val, ui) => {
3889
+ setLocalValue(val);
3890
+ onChange(val, ui);
3891
+ },
3892
+ [onChange]
3893
+ );
3891
3894
  useEffect11(() => {
3892
3895
  if (!isFocused) {
3893
3896
  setLocalValue(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.19.0-canary.84a836b",
3
+ "version": "0.19.0-canary.ad78e98",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",