@sesionario/blocks 1.41.0-rc.5 → 1.41.0-rc.6

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.cjs CHANGED
@@ -7398,6 +7398,9 @@ var MessageComposer = React2__namespace.forwardRef(function MessageComposer2({
7398
7398
  event.preventDefault();
7399
7399
  if (!canSubmit) return;
7400
7400
  onSubmit(event);
7401
+ requestAnimationFrame(() => {
7402
+ fieldRef.current?.focus({ preventScroll: true });
7403
+ });
7401
7404
  },
7402
7405
  [canSubmit, onSubmit]
7403
7406
  );
@@ -7472,6 +7475,10 @@ var MessageComposer = React2__namespace.forwardRef(function MessageComposer2({
7472
7475
  size: sendButtonSize,
7473
7476
  disabled: !canSubmit,
7474
7477
  className: sendButtonClassName,
7478
+ onPointerDown: (event) => {
7479
+ if (event.button !== 0) return;
7480
+ event.preventDefault();
7481
+ },
7475
7482
  children: sendLabel
7476
7483
  }
7477
7484
  )
@@ -7729,7 +7736,7 @@ function ThreadPanel({
7729
7736
  sendLabel: labels.send,
7730
7737
  placeholder: labels.placeholder,
7731
7738
  "aria-label": labels.placeholder,
7732
- disabled: loading || sending,
7739
+ disabled: loading,
7733
7740
  sendDisabled: loading || sending,
7734
7741
  maxLength: 2e3,
7735
7742
  rows: 2