anki/ts/deck-options
Henrik Giesel a981e56008
Improved add-on extension API (#1626)
* Add componentHook functionality

* Register package NoteEditor

* Rename OldEditorAdapter to NoteEditor

* Expose instances in component-hook as well

* Rename NoteTypeButtons to NotetypeButtons

* Move PreviewButton initialization to BrowserEditor.svelte

* Remove focusInRichText

- Same thing can be done by inspecting activeInput

* Satisfy formatter

* Fix remaining rebase issues

* Add .bazel to .prettierignore

* Rename currentField and activeInput to focused{Field,Input}

* Move identifier to lib and registration to sveltelib

* Fix Dynamic component insertion

* Simplify editingInputIsRichText

* Give extra warning in svelte/svelte.ts

- This was caused by doing a rename of a files, that only differed in
  case: NoteTypeButtons.svelte to NotetypeButtons.svelte
- It was quite tough to figure out, and this console.log might make it
  easier if it ever happens again

* Change signature of contextProperty

* Add ts/typings for add-on definition files

* Add Anki types in typings/common/index.d.ts

* Export without .svelte suffix

It conflicts with how Svelte types its packages

* Fix left over .svelte import from editor.py

* Rename NoteTypeButtons to unrelated to ensure case-only rename

* Rename back to NotetypeButtons.svelte

* Remove unused component-hook.ts, Fix typing in lifecycle-hooks

* Merge runtime-require and register-package into one file

+ Give some preliminary types to require

* Rename uiDidLoad to loaded

* Fix eslint / svelte-check

* Rename context imports to noteEditorContext

* Fix import name mismatch

- I wonder why these issues are not caught by svelte-check?

* Rename two missed usages of uiDidLoad

* Fix ButtonDropdown from having wrong border-radius

* Uniformly rename libraries to packages

- I don't have a strong opinion on whether to name them libraries or
  packages, I just think we should have a uniform name.
- JS/TS only uses the terms "module" and "namespace", however `package`
  is a reserved keyword for future use, whereas `library` is not.

* Refactor registration.ts into dynamic-slotting

- This is part of an effort to refactor the dynamic slotting (extending
  buttons) functionality out of components like ButtonGroup.

* Remove dynamically-slottable logic from ButtonToolbar

* Use DynamicallySlottable in editor-toolbar

* Fix no border radius on indentation button dropdown

* Fix AddonButtons

* Remove Item/ButtonGroupItem in deck-options, where it's not necessary

* Remove unnecessary uses of Item and ButtonGroupItem

* Fix remaining tests

* Fix relative imports

* Revert change return value of remapBinToSrcDir to ./bazel/out...

* Remove typings directory

* Adjust comments for dynamic-slottings
2022-02-03 14:52:11 +10:00
..
Addons.svelte Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
AdvancedOptions.svelte Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
AudioOptions.svelte Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
BUILD.bazel Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
BuryOptions.svelte Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
CardStateCustomizer.svelte Introduce our own Container, Row, and Col components (#1495) 2021-11-17 13:49:52 +10:00
CheckBox.svelte More uniform file naming 2021-07-01 12:24:16 +02:00
ConfigSelector.svelte Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
DailyLimits.svelte Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
deck-options-base.scss Introduce our own Container, Row, and Col components (#1495) 2021-11-17 13:49:52 +10:00
DeckOptionsPage.svelte Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
DisplayOrder.svelte Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
EnumSelector.svelte Live theme changes (#1497) 2021-11-25 07:17:41 +10:00
EnumSelectorRow.svelte Introduce our own Container, Row, and Col components (#1495) 2021-11-17 13:49:52 +10:00
HtmlAddon.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
icons.ts update to latest rules_nodejs & switch to ts_project 2021-10-01 12:52:53 +10:00
index.ts Add _raw methods for all methods in the backend (#1594) 2022-01-21 21:32:39 +10:00
Label.svelte Introduce our own Container, Row, and Col components (#1495) 2021-11-17 13:49:52 +10:00
LapseOptions.svelte Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
lib.test.ts Add _raw methods for all methods in the backend (#1594) 2022-01-21 21:32:39 +10:00
lib.ts Add _raw methods for all methods in the backend (#1594) 2022-01-21 21:32:39 +10:00
NewOptions.svelte Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
RevertButton.svelte Refactor i18n (#1405) 2021-10-07 23:31:49 +10:00
SaveButton.svelte Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
SpinBox.svelte Live theme changes (#1497) 2021-11-25 07:17:41 +10:00
SpinBoxFloat.svelte Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
SpinBoxFloatRow.svelte Introduce our own Container, Row, and Col components (#1495) 2021-11-17 13:49:52 +10:00
SpinBoxRow.svelte Introduce our own Container, Row, and Col components (#1495) 2021-11-17 13:49:52 +10:00
steps.test.ts More uniform file naming 2021-07-01 12:24:16 +02:00
steps.ts Cap steps (#1548) 2021-12-15 18:46:26 +10:00
StepsInput.svelte Live theme changes (#1497) 2021-11-25 07:17:41 +10:00
StepsInputRow.svelte Introduce our own Container, Row, and Col components (#1495) 2021-11-17 13:49:52 +10:00
strings.ts Refactor i18n (#1405) 2021-10-07 23:31:49 +10:00
Switch.svelte Live theme changes (#1497) 2021-11-25 07:17:41 +10:00
SwitchRow.svelte Introduce our own Container, Row, and Col components (#1495) 2021-11-17 13:49:52 +10:00
TextInputModal.svelte Live theme changes (#1497) 2021-11-25 07:17:41 +10:00
TimerOptions.svelte Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
TitledContainer.svelte Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
TooltipLabel.svelte update JS deps 2022-01-16 13:29:48 +10:00
tsconfig.json update to latest rules_nodejs & switch to ts_project 2021-10-01 12:52:53 +10:00
Warning.svelte Introduce our own Container, Row, and Col components (#1495) 2021-11-17 13:49:52 +10:00