anki/ts
Hikaru Y 7164723a7a
Fix two issues that can cause editor fields to behave incorrectly (#2540)
* Fix shortcut not being unregistered when Plain/RichTextBadge is detroyed

This fixes an issue where, if the "Show HTML by default" option of
fields located at the same position in two notetypes have different
values, switching between those notetypes during an editor session
would cause the keyboard shortcut (Ctrl+Shift+X) to no longer function
correctly thereafter.

* Don't restore fields' state if notetype has been modified

This fixes an issue where editor fields behave incorrectly after
opening the 'Fields' dialog and customizing the notetype. An example
of incorrect behavior is that after adding a new field and closing
the dialog, the added field would display both richtext input and
plaintext input, regardless of the options.

* Rename type, variable and function

- Apply suggestions from code review
- Also use optional chaining instead of non-null assertion
2023-06-14 09:38:06 +10:00
..
card-info Show custom data in stats screen 2023-02-07 12:27:43 +10:00
change-notetype Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
components Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
congrats Add some left/right margins to congrats page 2022-12-04 13:58:50 +10:00
deck-options Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
domlib Fix overwrite surround (#2247) 2022-12-09 10:10:58 +10:00
editable Prevent skewing of resized images in editor (#2488) 2023-05-05 19:16:06 +10:00
editor Fix two issues that can cause editor fields to behave incorrectly (#2540) 2023-06-14 09:38:06 +10:00
fields Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
graphs Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
html-filter Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
icons Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
image-occlusion Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
import-csv Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
lib Expose onUpdateHook/onShownHook via package 2023-05-31 15:19:09 +10:00
mathjax Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
patches Protobufjs fixed the relative path issue 2023-02-03 09:31:42 +10:00
reviewer Expose onUpdateHook/onShownHook via package 2023-05-31 15:19:09 +10:00
sql_format Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
sveltelib Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
tag-editor Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
.gitignore Update eslint to 4.22.0 2021-04-22 19:19:39 +02:00
bundle_svelte.mjs Add env var to enable sourcemaps 2022-12-04 11:37:16 +10:00
bundle_ts.mjs Add env var to enable sourcemaps 2022-12-04 11:37:16 +10:00
esbuild_jest.mjs Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
jest.config.js Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
licenses.json Upgrade Svelte (#2506) 2023-05-18 17:04:58 +10:00
page.html Load page script after body created (#1802) 2022-04-19 17:16:56 +10:00
README.md add add.sh helper for adding dependency and updating licenses 2020-12-31 12:20:51 +10:00
transform_ts.mjs Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
tsconfig.json Add es2019.string back to tsconfig 2023-05-11 15:10:27 +10:00
yarn.sh Fix yarn.sh failing with linked out folder 2023-03-31 13:08:59 +10:00

Anki's TypeScript and Sass dependencies. Some TS/JS code is also stored separately in ../qt/aqt/data/web/.

To update all dependencies:

./update.sh

To add a new dev dependency, use something like:

./add.sh -D @rollup/plugin-alias