Commit graph

191 commits

Author SHA1 Message Date
Eberhard Beilharz
b9aa9ccd8c
refactor(web): move predictive-textworker-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-cachekeyboard-storage
Move `web/src/engine/package-cache/` →
`web/src/engine/keyboard-storage/`.

Fixes: #12132
2024-08-15 12:26:10 +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
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-processorkeyboard
move parts of `common/web/keyboard-processor/` →
`web/src/engine/keyboard/`.

Fixes: #12110
2024-08-12 19:40:15 +02:00
Eberhard Beilharz
c09c895333
refactor(web): move parts of keyboard-processorjs-processor
Move parts of `common/web/keyboard-processor/` →
`web/src/engine/js-processor/`.

Note this temporarily disable tests for keyboard-processor which depend on
js-processor, until #12110 is fixed.

Fixes: #12067
2024-08-08 18:25:03 +02:00
Eberhard Beilharz
ebd2bf423a
Merge pull request #12072 from keymanapp/change/web/8146_moveCodes2
refactor(web): refactor and harmonize constants 🏗️
2024-08-06 09:06:31 +02:00
Eberhard Beilharz
ae0d9d9e0d
chore(web): fix previous commit 2024-08-02 12:36:30 +02:00
Eberhard Beilharz
32f91d0dde
chore(web): address code review comments
- fix imports of types defined in parent directory
- move `main/src/text` → `main/src/headless`
- move `languageProcessor.ts` → parent directory
2024-08-02 11:23:42 +02:00
Eberhard Beilharz
2c2acbe863
refactor(web): refactor and harmonize constants
Note that this adds the keyCodes > 50000 to `USVirtualKeyCodes`.

Fixes: #8146
2024-08-01 20:36:43 +02:00
Eberhard Beilharz
24159d680b
chore(web): move common/web/input-processor/web/src/engine/main/
Also:
- move `modelSpec.ts` and `PredictionContext.ts` →
  `web/src/engine/interfaces`
- move `correction.ts` and `correctionLayout.ts` to `web/src/engine/osk/`

Relates-to: #12035
Fixes: #12054
2024-08-01 20:13:21 +02:00
Eberhard Beilharz
ab5df20eef
chore(web): move web/src/engine/paths/web/src/engine/interfaces/
Fixes: #12035
2024-07-31 20:06:02 +02:00
Marc Durdin
49b4b4e939
Merge pull request #12039 from keymanapp/fix/web/12038-nullish-test-for-set-osk
fix(web): add nullish test in setOsk
2024-07-31 09:38:05 +10:00
Marc Durdin
f1e065d274 fix(web): add nullish test in setOsk
Fixes: #12038
2024-07-27 06:32:11 +07:00
Joshua A. Horton
67ac0ba8fd chore(web): Revert "fix(web): OSK now checks pred-text state on init"
This reverts commit 7466b82893.
2024-07-25 12:04:40 +07:00
Joshua A. Horton
0cac134d19 fix(web): set new-context rules' device to match that of the active OSK
Fixes: #11740
2024-06-10 08:39:45 +07:00
Joshua A. Horton
7e1571d382 chore(web): the final push for config-flag parity for web/ 2024-05-29 10:57:41 +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
0b05766efb chore(web): removes web/ unused locals 2024-05-29 09:24:32 +07:00
Joshua A. Horton
a34e5c9100 fix(web): EventEmitter import pattern update 2024-05-09 08:49:50 +07:00
Marc Durdin
cd8121ef65 chore(common): builder scripts now use /resources/build/builder.inc.sh
Note: there is a bit of potential confusion about the difference between
/resources/builder.inc.sh (the full implementation for builder scripts),
and /resources/build/builder.inc.sh (the source script that builder
scripts should always use).

This allows us to make assumptions that will always be true for builder
scripts that may not be true for other scripts, such as setting base
folder.
2024-05-02 15:54:31 +07:00
Marc Durdin
0f390d47cc chore(common): maintenance on build scripts - cd
Fixes #11324.

* Always `cd "$THIS_SCRIPT_PATH"`
* Remove unnecessary `cd` from all build.sh
* Remove unnecessary `set -eu` from all build.sh (and `# set -x`)
* Replace old build-utils.sh incantation in a few build.sh scripts
2024-05-02 15:54:29 +07:00
Joshua A. Horton
b107daab22 chore(web): Merge branch 'beta' into change/web/init-osk-with-keyboard 2024-04-18 08:15:30 +07:00
Joshua A. Horton
eead04351f chore(web): simple layout reflow polish 2024-04-17 12:20:43 +07:00
Joshua A. Horton
7466b82893 fix(web): OSK now checks pred-text state on init 2024-04-10 11:04:56 +07:00
Joshua A. Horton
c5953036e6 change(web): eliminates early redundant context reset
This one occurred during Promise fulfillment synchronously but outside OSK batching mode... with another call later _within_ OSK batching mode.
2024-04-05 12:55:31 +07:00
Joshua A. Horton
8cf0da476e change(web): prevents one small reflow during kbd swap 2024-04-05 12:55:31 +07:00
Joshua A. Horton
04df7f76c8 feat(web): high-level layout op batching
Affects change of keyboards and context resets - particularly when new-context rules trigger a non-default layer
2024-04-05 12:54:55 +07:00
Joshua A. Horton
4171e41976 fix(web): keystrokes during keyboard activation should not throw errors 2024-02-16 10:59:33 +07:00
Joshua A. Horton
593189b30d chore(web): Merge branch 'beta' into fix/web/transform-selection-interactions 2024-02-15 10:47:42 +07:00
Joshua A. Horton
5fe64b0cd4 fix(web): transcription-construction from contexts with selections 2024-02-07 12:08:19 +07:00
Joshua A. Horton
f8c5ce11c0 chore(web): removes temp console log 2024-01-31 13:02:51 +07:00
Joshua A. Horton
76cdef296e fix(web): app/webview control flow for initial layer 2024-01-31 12:50:40 +07:00
Joshua A. Horton
a404c20ddf feat(web): mnemonic + legacy keystroke pre-proc unit tests 2024-01-22 14:08:10 +07:00
Joshua A. Horton
e6a2f9f083 fix(android): hardware keystrokes now include mnemonic processing 2024-01-22 08:57:00 +07:00
Joshua A. Horton
b5d97070e5 change(web): converts Web's engine/ targets 2023-12-18 10:08:00 +07:00
Marc Durdin
eb881dc137
Merge pull request #7324 from keymanapp/feature-gestures
epic: new gesture engine 🐵
2023-12-14 15:23:43 +11:00
Joshua A. Horton
ec4231b4aa fix(web): fixes null-stub keyboard lookups, null -> null "keyboard change" 2023-12-13 12:43:25 +07:00
Joshua A. Horton
3c4e5d6ebd chore(web): Merge branch 'master' into chore/web/conflict-fix 2023-12-01 14:16:18 +07:00
Joshua Horton
19d3d7c20c
Merge pull request #10022 from keymanapp/change/android/flishy-flashy-mitigation-2
change(android): smoother keyboard initialization 
2023-12-01 09:12:50 +07:00
Joshua A. Horton
40f9e6ebd8 chore(web): Merge branch 'feature-gestures' into chore/merge-master-into-feature-gestures
Involved splicing feature-gestures banner changes into the newly-separated banner sources.
2023-11-24 08:29:39 +07:00
Joshua A. Horton
0f32515050 fix(web): app/webview did not clear deadkeys on context-reset 2023-11-22 09:09:36 +07:00
Joshua A. Horton
c5b3bafcc7 change(android): host-page init now retrieves current stub before KMW init 2023-11-17 09:54:40 +07:00
Joshua A. Horton
109920e235 refactor(web): drops banner options paradigm in favor of simple "inactiveBanner" prop 2023-11-13 13:31:57 +07:00
Joshua A. Horton
01c85b7781 chore(web): Merge branch 'feat/web/flick-implementation' into feat/web/gesture-preview-host 2023-11-03 09:40:29 +07:00
Joshua A. Horton
6955f90876 chore(web): addresses most review concerns 2023-11-03 09:32:56 +07:00
Joshua A. Horton
3e3e6edf69 fix(web): Android API 21 compat 2023-11-02 16:22:26 +07:00
Joshua A. Horton
1a3d7a263c feat(web): implementation of modipress, compatibility with multitap 2023-10-27 13:11:20 +07:00
Joshua A. Horton
2fa51fce29 feat(web): retrieval of base transcription for multitaps 2023-10-26 09:48:21 +07:00