Commit graph

4800 commits

Author SHA1 Message Date
Marc Durdin
32e92846a3
Merge pull request #11690 from keymanapp/chore/common/move-cldr-import-copy-to-build-step
chore(common): move CLDR import copy into build step for common/web/types
2024-06-06 10:08:39 +07:00
Marc Durdin
23f9391855
Merge pull request #11660 from keymanapp/chore/8616-bring-xml2js-into-repo
chore: move xml2js into the repo to eliminate npm git dependency
2024-06-06 10:02:32 +07:00
Marc Durdin
f2e0398c13
Merge pull request #11657 from keymanapp/chore/8616-remove-restructure-git-dep
chore: replace git dep on restructure with 3.0.1 in npm
2024-06-06 10:02:22 +07:00
Marc Durdin
93ba57dcd8 chore(common): move CLDR import copy into build step for common/web/types
The CLDR imports are copied into the build/ folder, so it makes more
sense for them to be done during the build phase, particularly as it is
a very quick operation. (Before this, removing the build/ folder did not
trigger a build.sh configure, so subsequent tests and usage will fail
with confusing LDML import errors. An alternative solution would have
been to declare the configure output to be one of these files.)
2024-06-05 10:53:44 +07:00
Marc Durdin
9c204ea071 fix(common): import EventEmitter only instead of all events in parser.js
When importing all of events with:

    import * as events from 'events';

tsc for kmc-ldml (but not for common/web/types) would error with:

    ../../../common/web/types/build/src/deps/xml2js/parser.d.ts:17:25 - error TS2306: File '.../node_modules/@types/node/events.d.ts' is not a module.

    17 import * as events from "node/events.js";

I am not clear why. Changing to the following side-stepped this:

    import { EventEmitter } from 'events';
2024-06-05 10:07:37 +07:00
Joshua A. Horton
d6f05323f8 fix(web): fix predictions after moving caret
Fixes: #11684
Fixes: KEYMAN-WEB-KR
Fixes: #11620
Fixes: KEYMAN-WEB-KT
2024-06-05 08:41:27 +07:00
Marc Durdin
e6d59fc173 chore: move xml2js into the repo to eliminate npm git dependency
Small rewrites to the xml2js code as ES6 modules. Based on
https://github.com/keymanapp/dependency-node-xml2js

Fixes: #8616
2024-06-03 16:07:29 +07:00
Joshua Horton
c3277c5fdf
Merge pull request #11464 from keymanapp/chore/web/final-config-flag-fixes
chore(web): finalize web/ project parity with base-repo TS config settings (aside from JS version target) 🔩
2024-06-03 15:16:35 +07:00
Joshua Horton
f5e65f0539
Merge pull request #11462 from keymanapp/chore/web/remove-no-implicit-any
chore(web): correct cases of implicit-any in web/ 🔩
2024-06-03 15:16:10 +07:00
Joshua Horton
604d2fcb11
Merge pull request #11424 from keymanapp/chore/web/partial-config-cleanup
chore(web): clean up remaining low-level Web .tsconfig settings 🔩
2024-06-03 15:16:00 +07:00
Marc Durdin
b874de25e8 chore: replace git dep on restructure with 3.0.1 in npm
3.0.1 includes our fix. However, 3.0.2 does not yet appear to have been
published, which has a patch for our fix?

Fixes: #8616
2024-06-03 14:58:39 +07:00
Eberhard Beilharz
47e8d3db57
Merge pull request #11594 from keymanapp/fix/web/11593_undefinedConfig
fix(web): Don't apply suggestion unless fully configured
2024-06-03 09:01:22 +02:00
Joshua A. Horton
eb40a0f6ee chore(web): Merge remote-tracking branch 'origin/chore/web/remove-no-implicit-any' into chore/web/remove-no-implicit-any 2024-06-03 11:58:06 +07:00
Joshua A. Horton
d2987ac26f chore(web): Merge branch 'chore/web/partial-config-cleanup' into chore/web/remove-no-implicit-any 2024-06-03 11:57:33 +07:00
Joshua A. Horton
46e4518749 chore(web): Merge branch 'master' into chore/web/partial-config-cleanup 2024-06-03 10:57:51 +07:00
Joshua Horton
b304069425
Merge pull request #11603 from keymanapp/fix/web/kbd-proc-strictness-bugs
fix(web): fix keyboard-processing bugs uncovered by stricter TS settings 🔩
2024-06-03 10:55:10 +07:00
Joshua Horton
b6207dca45
Merge pull request #11601 from keymanapp/refactor/web/typed-property-transplantation
refactor(web): refactor keyboard-layout preprocessing property transplantation 🔩
2024-06-03 10:55:02 +07:00
Joshua A. Horton
3d77cf2fef docs(web): on KLS format and its arrays of 65 entries 2024-06-03 08:38:12 +07:00
Eberhard Beilharz
9cac9772dc
Update common/web/input-processor/src/text/prediction/languageProcessor.ts
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2024-05-31 10:57:04 +02:00
Joshua Horton
2b33d6c0a5
docs(web): tweaks comment regarding a @ts-ignore
Co-authored-by: Marc Durdin <marc@durdin.net>
2024-05-31 15:14:33 +07:00
Joshua A. Horton
5abd621ddc change(web): isKeyNotCorrected -> isFrameKey 2024-05-31 13:58:31 +07:00
Marc Durdin
4cc6c3699f
Merge pull request #11611 from keymanapp/chore/windows/support-port-in-httpuploader
chore(windows): support port in THTTPUploader
2024-05-31 13:07:46 +07:00
Marc Durdin
ab1e916086
Merge pull request #11590 from keymanapp/fix/developer/11589-single-pixel-top-row-for-touch-on-character-map
fix(developer): make top row of Character Map 1 pixel to avoid DIV/0 in gestures
2024-05-31 13:07:21 +07:00
Joshua Horton
c4932b7fd1
docs(web): adds suggested documentation from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2024-05-31 10:06:05 +07:00
Joshua Horton
8f3569681b
docs(web): Update codes.ts with docs on use of the 50000 literal 2024-05-30 16:56:30 +07:00
Joshua Horton
006f15b225
change(web): minor simplification from review
Co-authored-by: Marc Durdin <marc@durdin.net>
2024-05-30 16:53:17 +07:00
Joshua A. Horton
487a28da8e docs(web): for EncodedVisualKeyboard 2024-05-30 16:44:27 +07:00
Joshua A. Horton
10033f4dea docs(web): fixes detail about readonly keystroke params 2024-05-30 16:40:59 +07:00
Joshua A. Horton
61dfcc98f6 docs(web): documents KeyboardObject properties 2024-05-30 16:37:00 +07:00
Joshua Horton
ee0c107afe
fix(web): for...of, not for...in
We moved to the Object.keys() pattern, which means replacing the 'in'

Co-authored-by: Marc Durdin <marc@durdin.net>
2024-05-30 15:58:57 +07:00
Joshua Horton
321ded4776
Merge pull request #11460 from keymanapp/chore/web/remove-unused-locals
chore(web): removes unused locals, imports, and private fields 🔩
2024-05-30 15:50:45 +07:00
Joshua Horton
da4cf64ebf
Merge pull request #11598 from keymanapp/fix/web/worker-prediction-match-token
fix(web): use intended source for prediction-to-context matching 🔩
2024-05-30 15:50:31 +07:00
Joshua Horton
dbee817d80
Merge pull request #11459 from keymanapp/chore/web/fix-implicit-this
chore(web): fixes implicit-this cases 🔩
2024-05-30 15:50:24 +07:00
Joshua Horton
f283d955a7
Merge pull request #11596 from keymanapp/fix/web/recorder-core-strictness
fix(web): headless recorder unhandled paths, invalid test-sequence references 🔩
2024-05-30 15:50:12 +07:00
Joshua Horton
47f91d8b13
change(web): Apply suggestions from code review
We bothered defining a local const, so why not use it everywhere that makes sense?  (Small polishing)

Co-authored-by: Marc Durdin <marc@durdin.net>
2024-05-30 14:07:34 +07:00
Joshua Horton
a3c8daa218
Merge pull request #11414 from keymanapp/chore/web/update-typescript
chore(web): updates TypeScript version to 5.4.5
2024-05-30 14:03:48 +07:00
Joshua Horton
65a0c22bda
Merge pull request #11579 from keymanapp/fix/web/sentry-report-null-debug-info
fix(web): add null guard for missing debug info when reporting to Sentry
2024-05-30 13:59:52 +07:00
Joshua Horton
b6d27d0548
Merge pull request #11472 from keymanapp/fix/web/kbd-doc-generation
fix(web): correctly handle cross-origin stylesheets when calculating keyboard size and key cap font size
2024-05-30 13:59:26 +07:00
Marc Durdin
a68124b5e6 chore(windows): support port in THTTPUploader
This can be useful for debugging scenarios, where we want to use a local
test HTTP server on a different port, e.g. setting
`development.urls.api_keyman_com_host` to `localhost:8058`.
2024-05-30 08:20:43 +07:00
Eberhard Beilharz
c85ae47a20
change(web): Output warning if we can't apply suggestion
This addresses code review comments. We output a separate error if
the configuration isn't yet set because the model isn't fully loaded yet.
2024-05-29 19:25:25 +02:00
Joshua A. Horton
70c7268192 chore(web): and the corresponding patch-up for gesture unit-tests 2024-05-29 10:58:04 +07:00
Joshua A. Horton
f34fd85130 chore(web): gesture-recognizer unit-test noImplicitAny touchup 2024-05-29 10:54:23 +07:00
Joshua A. Horton
d5b5eebe00 chore(web): previously-missed spot in gesture-recognizer 2024-05-29 10:54:19 +07:00
Joshua A. Horton
5ddcf2cbe5 chore(web): patches web tools for enforcement of no implicit any 2024-05-29 10:43:12 +07:00
Joshua A. Horton
6591c61eeb chore(web): enforces noImplicitAny for app/browser and app/webview 2024-05-29 10:43:11 +07:00
Joshua A. Horton
12c91d90c3 fix(web): better suggestionApplier fix for the 'reversion' path 2024-05-29 10:36:38 +07:00
Joshua A. Horton
2f42f3943c chore(web): better use of scope within getVKDictionaryCode 2024-05-29 10:36:38 +07:00
Joshua A. Horton
04244415a4 chore(web): resolves some nits observed in review 2024-05-29 10:36:37 +07:00
Joshua A. Horton
3530314cbd chore(web): noImplicitReturns, strictNullChecks 2024-05-29 10:36:37 +07:00
Joshua A. Horton
35b7ed647f fix(web): gesture-recognizer tests aren't ready yet 2024-05-29 10:36:36 +07:00