Skip to content

Commit feb1de3

Browse files
dependabot[bot]adi-herwana-nus
authored andcommitted
chore(deps): bump ace-builds from 1.32.9 to 1.43.6 in /client
Bumps [ace-builds](https://github.com/ajaxorg/ace-builds) from 1.32.9 to 1.43.6. - [Release notes](https://github.com/ajaxorg/ace-builds/releases) - [Changelog](https://github.com/ajaxorg/ace-builds/blob/master/CHANGELOG.md) - [Commits](ajaxorg/ace-builds@v1.32.9...v1.43.6) --- updated-dependencies: - dependency-name: ace-builds dependency-version: 1.43.6 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent dc14a58 commit feb1de3

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

client/app/lib/components/core/fields/EditorField.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,12 @@ const EditorField = forwardRef(
127127
}
128128
}
129129

130-
if (language === 'python')
131-
editor.onPaste = (originalText, event: ClipboardEvent): void => {
132-
event.preventDefault();
133-
130+
if (language === 'python') {
131+
editor.on('paste', (e: { text: string }): void => {
134132
const spaces = ' '.repeat(editor.getOption('tabSize') ?? 4);
135-
const text = originalText.replaceAll('\t', spaces);
136-
editor.commands.exec('paste', editor, { text, event });
137-
};
133+
e.text = e.text.replaceAll('\t', spaces);
134+
});
135+
}
138136
}}
139137
setOptions={{
140138
...otherProps.setOptions,

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@sgratzl/chartjs-chart-boxplot": "^3.8.0",
4747
"@tailwindcss/container-queries": "^0.1.1",
4848
"@tanstack/react-table": "8.16.0",
49-
"ace-builds": "^1.32.6",
49+
"ace-builds": "^1.43.6",
5050
"axios": "^1.15.0",
5151
"babel-plugin-formatjs": "^10.5.14",
5252
"chart.js": "^3.8.2",

client/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4627,10 +4627,10 @@ accepts@~1.3.4, accepts@~1.3.8:
46274627
mime-types "~2.1.34"
46284628
negotiator "0.6.3"
46294629

4630-
ace-builds@^1.32.6, ace-builds@^1.32.8:
4631-
version "1.32.9"
4632-
resolved "https://registry.yarnpkg.com/ace-builds/-/ace-builds-1.32.9.tgz#6483652c8b4668c06c98b29e1c4772d91cb87400"
4633-
integrity sha512-dqBLPj//Gq0b92YUtRIsdWsORf4J+4xW3r8/4Wr2Vqid7O1j7YBV/ZsVvWBjZFy+EnvMCRFCFOEIM1cbt4BQ/g==
4630+
ace-builds@^1.32.8, ace-builds@^1.43.6:
4631+
version "1.43.6"
4632+
resolved "https://registry.yarnpkg.com/ace-builds/-/ace-builds-1.43.6.tgz#6feffd0283da5bbf45a2052470fe0fc3c442831a"
4633+
integrity sha512-L1ddibQ7F3vyXR2k2fg+I8TQTPWVA6CKeDQr/h2+8CeyTp3W6EQL8xNFZRTztuP8xNOAqL3IYPqdzs31GCjDvg==
46344634

46354635
acorn-import-phases@^1.0.3:
46364636
version "1.0.4"

0 commit comments

Comments
 (0)