Commit graph

1254 commits

Author SHA1 Message Date
Eberhard Beilharz
91bbc250a8
refactor(web): move model/templates to web/src/engine/predictive/text
Part-of: #12133
2024-09-10 17:10:12 +02:00
Eberhard Beilharz
c3e587193e
refactor(web): move model/types to web/types
Part-of: #12133
2024-09-09 19:59:01 +02:00
Eberhard Beilharz
f7f26e87f8
feat(web): refactor loading of .js keyboards
- split keyboard loading into loading into blob and then loading the script
- look at first four bytes to see if it's a .js or a .kmx keyboard
- for domKeyboardLoader, use fetch to get the blob, then use indirect
  eval to load the script, instead of injecting a script element.

This does not yet implement the loading of .kmx keyboards.
2024-08-31 21:58:37 +07:00
Eberhard Beilharz
165829beb5
Merge branch 'epic/web-core' into chore/merge-master-into-web-core 2024-08-30 15:17:47 +07:00
Joshua Horton
5b5fd30efc
Merge pull request #12313 from keymanapp/fix/web/mid-context-accept-space-interactions 2024-08-29 21:23:04 +07:00
Joshua A. Horton
721bc9172e fix(web): prevent unintuitive space-output blocking for mid-context suggestions
Fixes: #12309
2024-08-29 10:01:45 +07:00
Eberhard Beilharz
0ae160c74f
Merge pull request #12304 from keymanapp/chore/web/comment
chore(web): remove obsolete comment
2024-08-29 09:17:30 +07:00
Eberhard Beilharz
39f0d5b057
Merge pull request #12194 from keymanapp/refactor/web/12151_gestures
refactor(web): move `gesture-recognizer` → `gesture-processor` 🏗️
2024-08-29 09:16:42 +07:00
Eberhard Beilharz
cf3eef418a
chore(web): remove obsolete comment 2024-08-28 14:32:27 +07:00
Joshua A. Horton
98a27925f4 chore(web): Merge branch 'master' into feat/web/utf8-charset-output 2024-08-27 10:20:25 +07:00
Eberhard Beilharz
0d194faa71
refactor(web): fix tests 2024-08-27 09:37:43 +07:00
Eberhard Beilharz
b1fb8122c2
refactor(web): move gesture-processor tests under web/src/test
`gesture-processor/src/test/auto/browser/web-test-runner.config.mjs`
run the tests on iOS and Android. However, if we enable these browsers
in `web/src/test/auto/dom/web-test-runner.config.mjs` we get failing
tests in osk, therefore these browsers are commented for now.
2024-08-26 15:29:22 +07:00
Eberhard Beilharz
7dabd30cae
refactor(web): move gesture-recognizer → gesture-processor
Moves `common/web/gesture-recognizer/` →
`web/src/engine/osk/gesture-processor`.

Fixes: #12151
2024-08-26 15:29:21 +07:00
Eberhard Beilharz
13f052f766
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2024-08-26 14:49:54 +07:00
Joshua Horton
fe96d81307
Merge pull request #12232 from keymanapp/fix/web/doc-keyboard-spacebar-scaling
fix(web): fix documentation-keyboard spacebar-text scaling
2024-08-23 08:18:31 +07:00
Marc Durdin
e015072213 chore(web): add utils dependency to core-processor (es-bundling) 2024-08-22 15:58:53 +02:00
Marc Durdin
1a8d8a771b
Merge branch 'epic/web-core' into feat/web/core 2024-08-22 15:29:47 +02:00
Joshua Horton
f6c21874d7
Merge pull request #12220 from keymanapp/fix/web/disabling-fatfinger-data
fix(web): disable fat-finger data use when mayCorrect = false
2024-08-21 14:51:08 +07:00
Joshua A. Horton
45dee1c504 docs(web): extends doc-comment per review comment 2024-08-21 09:05:48 +07:00
Eberhard Beilharz
0abc250af3
feat(web): POC of Core WASM integration into Keyman Web
- add temporary function to Core for this POC
- add new CoreProcessor to access Keyman Core WASM
- add unit tests for new core processor
- add code to KeymanEngine and InputProcessor to load the new CoreProcessor
- add web server to manual tests and new action `start` to build script

This change requires the manual tests to be loaded from a web server
instead of loaded as file, because otherwise the wasm code won't be
loaded.

Currently we always load CoreProcessor. This should be improved in a future
change to only load when it is actually needed.

Part-of: #11293
2024-08-20 22:45:39 +02:00
Joshua A. Horton
01ae0c0a9a chore(web): Revert "change(web): better way to re-establish default sizing"
This reverts commit 23e02d2a86.
2024-08-20 14:40:24 +07:00
Joshua A. Horton
23e02d2a86 change(web): better way to re-establish default sizing 2024-08-20 14:38:58 +07:00
Joshua A. Horton
97697b695f fix(web): fix documentation-keyboard spacebar-text scaling
Fixes: #12231
2024-08-20 14:21:44 +07:00
Joshua A. Horton
a5682dc36c chore(web): Merge branch 'master' into fix/web/malformed-reversion-display-strings 2024-08-20 08:11:02 +07:00
Joshua Horton
9d9a091651
Merge pull request #12188 from keymanapp/refactor/web/drop-interface-jsproc-dependency 2024-08-20 07:01:59 +07:00
Eberhard Beilharz
3c14a6ec0a
Merge pull request #12150 from keymanapp/refactor/web/12148_worker-thread
refactor(web): move `lm-worker` → `worker-thread` 🏗️
2024-08-19 10:10:11 +02:00
Joshua A. Horton
98d5322e51 fix(web): disable fat-finger data use when mayCorrect = false 2024-08-19 12:53:51 +07:00
Eberhard Beilharz
d2662ffef8
Merge pull request #12149 from keymanapp/refactor/web/12147_types
refactor(web): move `lm-message-types` → `predictive-text/types` 🏗️
2024-08-16 11:08:48 +02:00
Joshua Horton
e136724284
Merge pull request #12187 from keymanapp/fix/web/fix-flicks
fix(web): restore flick functionality
2024-08-16 14:16:06 +07:00
Eberhard Beilharz
ea62ac23e7
refactor(web): move lm-worker → worker-thread
Move `common/web/lm-worker/` →
`web/src/engine/predictive-text/worker-thread/`.

Fixes: #12148
2024-08-16 08:35:20 +02:00
Eberhard Beilharz
78857d96c9
refactor(web): move lm-message-types → predictive-text/types
Moves `common/web/lm-message-types/` →
`web/src/engine/predictive-text/types/`

Fixes: #12147
2024-08-16 08:31:21 +02:00
Eberhard Beilharz
e52937f907
Apply suggestions from code review
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2024-08-16 06:58:05 +02:00
Eberhard Beilharz
b9aa9ccd8c
refactor(web): move predictive-text → worker-main
This moves `common/predictive-text/` →
`web/src/engine/predictive-text/worker-main/`.

This also moves `common/test/predictive-text/` →
`web/src/test/manual/predictive-text/`. Note though that this testing
tool is still broken.

Fixes: #12134
2024-08-15 12:26:50 +02:00
Eberhard Beilharz
170ac4bb6b
refactor(web): rename package-cache → keyboard-storage
Move `web/src/engine/package-cache/` →
`web/src/engine/keyboard-storage/`.

Fixes: #12132
2024-08-15 12:26:10 +02:00
Joshua A. Horton
36b42c4b45 Merge branch 'refactor/web/12110_keyboard' into refactor/web/drop-interface-jsproc-dependency 2024-08-15 13:46:43 +07:00
Eberhard Beilharz
d640dbe6ec
Merge branch 'master' into refactor/web/12110_keyboard
# Conflicts:
#	package-lock.json
2024-08-15 08:30:59 +02:00
Joshua A. Horton
88145326dc docs(web): drops doc-reference to hidden field 2024-08-15 10:31:36 +07:00
Joshua A. Horton
8af17659a0 docs(web): doc tweak 2024-08-15 10:30:33 +07:00
Joshua A. Horton
2938ee110b refactor(web): remove engine/interfaces dependency on engine/js-processor 2024-08-15 10:12:27 +07:00
Joshua A. Horton
4509805f58 fix(web): restore flick functionality 2024-08-15 09:04:35 +07:00
Eberhard Beilharz
61b44cbfbe
Merge branch 'master' into refactor/web/12067_js-processor 2024-08-14 19:15:51 +02:00
Eberhard Beilharz
89abdbd64c
refactor(web): move some files around
- move `outputTarget.ts` → `js-processor`
- move `deadkeys.ts` → `js-processor`
- move `stringDivergence.ts` → `js-processor`
- split `Mock` into `mock.ts`
- create `keyboard/outputTarget.interface.ts`
2024-08-14 19:06:32 +02:00
Eberhard Beilharz
7459ab0bf8
refactor(web): move tests
Some tests test functionality defined in `js-processor`, so we move
these to the appropriate location. Addresses code review comments.
2024-08-14 19:06:31 +02:00
Joshua A. Horton
afdc7be731 feat(web): add osk.gestureParams for better gesture-config persistence 2024-08-14 11:07:48 +07:00
Joshua A. Horton
75527ec738 chore(web): minor simplification 2024-08-14 09:25:43 +07:00
Joshua A. Horton
d7cdd481ba fix(web): support live configuration of longpress delay 2024-08-14 09:20:02 +07:00
Eberhard Beilharz
3cdd84ff40
refactor(web): move tests to test/auto/headless
Addresses code review comments.
2024-08-13 19:00:38 +02:00
Eberhard Beilharz
73aa5afee3
Merge branch 'refactor/web/12067_js-processor' into refactor/web/12110_keyboard 2024-08-13 18:43:58 +02:00
Eberhard Beilharz
dedc18e156
refactor(web): move some files around
- move `systemStore.ts` → `js-processor`
- move `keyEventSource.interface.ts` → `osk`
- move `defaultRules.ts` → back to `keyboard-processor`
- in `KeyboardProcessor` pass `ruleBehavior` as parameter to `forAny`,
  looks like that accidentally got omitted previously

Addresses code review comments.
2024-08-13 18:26:00 +02:00
Eberhard Beilharz
46ecfd4466
refactor(web): move remaining parts of keyboard-processor → keyboard
move parts of `common/web/keyboard-processor/` →
`web/src/engine/keyboard/`.

Fixes: #12110
2024-08-12 19:40:15 +02:00