smoothly 1.0.0-alpha.151 → 1.0.0-alpha.152

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.
@@ -9113,8 +9113,7 @@ const SmoothlyInput = class {
9113
9113
  let pasted = event.clipboardData ? event.clipboardData.getData("text") : "";
9114
9114
  const backend = event.target;
9115
9115
  pasted = this.expiresAutocompleteFix(backend, pasted);
9116
- for (const letter of pasted)
9117
- this.processKey({ key: letter }, backend);
9116
+ this.processPaste(pasted, backend);
9118
9117
  }
9119
9118
  onInput(event) {
9120
9119
  var _a;
@@ -9146,6 +9145,12 @@ const SmoothlyInput = class {
9146
9145
  : value;
9147
9146
  return value;
9148
9147
  }
9148
+ processPaste(pasted, backend) {
9149
+ if (!this.readonly) {
9150
+ const after = Action.paste(this.formatter, this.state, pasted);
9151
+ this.updateBackend(after, backend);
9152
+ }
9153
+ }
9149
9154
  processKey(event, backend) {
9150
9155
  if (!this.readonly) {
9151
9156
  const after = Action.apply(this.formatter, this.state, event);