@measured/puck 0.18.2-canary.29a7f1d → 0.18.2-canary.36c27a9

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
@@ -3190,7 +3190,7 @@ function AutoFieldInternal(props) {
3190
3190
  });
3191
3191
  const onFocus = (0, import_react21.useCallback)(
3192
3192
  (e) => {
3193
- if (mergedProps.name && e.target.nodeName === "INPUT") {
3193
+ if (mergedProps.name && (e.target.nodeName === "INPUT" || e.target.nodeName === "TEXTAREA")) {
3194
3194
  e.stopPropagation();
3195
3195
  dispatch({
3196
3196
  type: "setUi",
@@ -5217,6 +5217,13 @@ var DragDropContextClient = ({
5217
5217
  (_a2 = dragListeners.dragend) == null ? void 0 : _a2.forEach((fn) => {
5218
5218
  fn(event, manager);
5219
5219
  });
5220
+ dispatch({
5221
+ type: "setUi",
5222
+ ui: {
5223
+ itemSelector: null,
5224
+ isDragging: false
5225
+ }
5226
+ });
5220
5227
  return;
5221
5228
  }
5222
5229
  if (thisPreview) {
package/dist/index.mjs CHANGED
@@ -3017,7 +3017,7 @@ function AutoFieldInternal(props) {
3017
3017
  });
3018
3018
  const onFocus = useCallback5(
3019
3019
  (e) => {
3020
- if (mergedProps.name && e.target.nodeName === "INPUT") {
3020
+ if (mergedProps.name && (e.target.nodeName === "INPUT" || e.target.nodeName === "TEXTAREA")) {
3021
3021
  e.stopPropagation();
3022
3022
  dispatch({
3023
3023
  type: "setUi",
@@ -5071,6 +5071,13 @@ var DragDropContextClient = ({
5071
5071
  (_a2 = dragListeners.dragend) == null ? void 0 : _a2.forEach((fn) => {
5072
5072
  fn(event, manager);
5073
5073
  });
5074
+ dispatch({
5075
+ type: "setUi",
5076
+ ui: {
5077
+ itemSelector: null,
5078
+ isDragging: false
5079
+ }
5080
+ });
5074
5081
  return;
5075
5082
  }
5076
5083
  if (thisPreview) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.18.2-canary.29a7f1d",
3
+ "version": "0.18.2-canary.36c27a9",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",