|
1 | | -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-XGM21imE.js","assets/base-80a1f760-BD2Mu7tZ.js","assets/consoleHook-59e792cb-BeR7JuZa.js","assets/index-DALtNS7a.js","assets/index-C5SkYj0A.css","assets/index-599aeaf7-B3wjN8kj.js","assets/index-B7urfGQg.js"])))=>i.map(i=>d[i]); |
2 | | -import { a as React, r as reactExports, g as getDefaultExportFromCjs, j as jsxRuntimeExports } from './index-DALtNS7a.js'; |
| 1 | +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DhbxIEq-.js","assets/base-80a1f760-CXTwmP4a.js","assets/consoleHook-59e792cb-BKb5Yt_3.js","assets/index-Cg0Jp0AV.js","assets/index-CNNNiuuM.css","assets/index-599aeaf7-Bxb6yrTy.js","assets/index-Bw9q06Nx.js"])))=>i.map(i=>d[i]); |
| 2 | +import { a as React, r as reactExports, g as getDefaultExportFromCjs, j as jsxRuntimeExports } from './index-Cg0Jp0AV.js'; |
3 | 3 |
|
4 | 4 | const scriptRel = 'modulepreload';const assetsURL = function(dep) { return "/"+dep };const seen = {};const __vitePreload = function preload(baseModule, deps, importerUrl) { |
5 | 5 | let promise = Promise.resolve(); |
@@ -480,15 +480,15 @@ function loadSandpackClient(iframeSelector, sandboxSetup, options) { |
480 | 480 | case "static": return [3 /*break*/, 3]; |
481 | 481 | } |
482 | 482 | return [3 /*break*/, 5]; |
483 | | - case 1: return [4 /*yield*/, __vitePreload(() => import('./index-XGM21imE.js'),true?__vite__mapDeps([0,1,2,3,4]):void 0).then(function (m) { return m.SandpackNode; })]; |
| 483 | + case 1: return [4 /*yield*/, __vitePreload(() => import('./index-DhbxIEq-.js'),true?__vite__mapDeps([0,1,2,3,4]):void 0).then(function (m) { return m.SandpackNode; })]; |
484 | 484 | case 2: |
485 | 485 | Client = _c.sent(); |
486 | 486 | return [3 /*break*/, 7]; |
487 | | - case 3: return [4 /*yield*/, __vitePreload(() => import('./index-599aeaf7-B3wjN8kj.js'),true?__vite__mapDeps([5,2,1,3,4]):void 0).then(function (m) { return m.SandpackStatic; })]; |
| 487 | + case 3: return [4 /*yield*/, __vitePreload(() => import('./index-599aeaf7-Bxb6yrTy.js'),true?__vite__mapDeps([5,2,1,3,4]):void 0).then(function (m) { return m.SandpackStatic; })]; |
488 | 488 | case 4: |
489 | 489 | Client = _c.sent(); |
490 | 490 | return [3 /*break*/, 7]; |
491 | | - case 5: return [4 /*yield*/, __vitePreload(() => import('./index-B7urfGQg.js'),true?__vite__mapDeps([6,1,3,4]):void 0).then(function (m) { return m.SandpackRuntime; })]; |
| 491 | + case 5: return [4 /*yield*/, __vitePreload(() => import('./index-Bw9q06Nx.js'),true?__vite__mapDeps([6,1,3,4]):void 0).then(function (m) { return m.SandpackRuntime; })]; |
492 | 492 | case 6: |
493 | 493 | Client = _c.sent(); |
494 | 494 | _c.label = 7; |
@@ -8953,7 +8953,10 @@ class InputState { |
8953 | 8953 | return; |
8954 | 8954 | if (event.type == "keydown" && this.keydown(event)) |
8955 | 8955 | return; |
8956 | | - this.runHandlers(event.type, event); |
| 8956 | + if (this.view.updateState != 0 /* UpdateState.Idle */) |
| 8957 | + Promise.resolve().then(() => this.runHandlers(event.type, event)); |
| 8958 | + else |
| 8959 | + this.runHandlers(event.type, event); |
8957 | 8960 | } |
8958 | 8961 | runHandlers(type, event) { |
8959 | 8962 | let handlers = this.handlers[type]; |
@@ -12056,8 +12059,11 @@ class EditContextManager { |
12056 | 12059 | return !abort; |
12057 | 12060 | } |
12058 | 12061 | update(update) { |
12059 | | - let reverted = this.pendingContextChange; |
12060 | | - if (this.composing && (this.composing.drifted || update.transactions.some(tr => !tr.isUserEvent("input.type") && tr.changes.touchesRange(this.from, this.to)))) { |
| 12062 | + let reverted = this.pendingContextChange, startSel = update.startState.selection.main; |
| 12063 | + if (this.composing && |
| 12064 | + (this.composing.drifted || |
| 12065 | + (!update.changes.touchesRange(startSel.from, startSel.to) && |
| 12066 | + update.transactions.some(tr => !tr.isUserEvent("input.type") && tr.changes.touchesRange(this.from, this.to))))) { |
12061 | 12067 | this.composing.drifted = true; |
12062 | 12068 | this.composing.editorBase = update.changes.mapPos(this.composing.editorBase); |
12063 | 12069 | } |
|
0 commit comments