Commit graph

27982 commits

Author SHA1 Message Date
Darcy Wong
824319d398 chore(common): Revert move of die to builder_die 2022-09-28 08:24:08 +07:00
Ross
85ede116b9 feat(windows): address review comments 2022-09-28 11:14:35 +10:00
Darcy Wong
dd07f1c333 refactor(common): Add _builder_findRepoRoot 2022-09-28 08:10:57 +07:00
Darcy Wong
f95e17483b refactor(common): Revert move of KEYMAN_ROOT to REPO_ROOT 2022-09-28 07:56:08 +07:00
Darcy Wong
d5df060e76 chore(common): Move KEYMAN_ROOT to REPO_ROOT 2022-09-27 15:23:32 +07:00
Darcy Wong
a31c8931f1 chore(common): Move die to builder_die 2022-09-27 15:18:48 +07:00
Darcy Wong
22767bd6be chore(common): Split builder portion of script 2022-09-27 14:43:14 +07:00
Marc Durdin
0f961bd674 feat(developer): visual keyboard compiler in kmc
Adds support for building .kvk files to kmc. At present, .kvk will
always be generated, even if the .xml does not have a hardware layer.
2022-09-27 15:16:07 +10:00
Marc Durdin
b6abe7432a feat(developer): emit .kvk plus e2e test
Adds visual-keyboard-compiler and corresponding e2e test.
2022-09-27 15:03:31 +10:00
rc-swag
7ac4dd64b8
feat(windows): address review comments
Co-authored-by: Marc Durdin <marc@durdin.net>
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2022-09-27 14:47:42 +10:00
Joshua A. Horton
f557f5636a fix(web): design-iframes too 2022-09-27 10:46:55 +07:00
Marc Durdin
eb0dbef9d4 chore: npm install 2022-09-27 13:43:58 +10:00
Marc Durdin
03c3c40f29 chore(developer): remove visual-keyboard-compiler.ts 2022-09-27 13:42:56 +10:00
Joshua A. Horton
59b6b6e804 fix(web): getTextAfterCaret() should never return undefined 2022-09-27 10:34:41 +07:00
Marc Durdin
26e32a0124 refactor(developer): split file type management into package
Splits file format reading, writing, and in-memory structures of .kmx,
.kvk, .kvks, .xml (ldml keyboard) into separate common module. Lots of
little fixups, sorry...

This will make it much easier for us to reuse these readers and writers
in future code.
2022-09-27 12:33:10 +10:00
Joshua A. Horton
0bbc3e7375 chore(web): reverts accidental branch creep 2022-09-27 08:59:56 +07:00
Joshua Horton
fc7dfb9879
Merge pull request #7346 from keymanapp/chore/web/update-toolchain
chore(web): update Node dev-dependencies
2022-09-27 08:53:42 +07:00
Marc Durdin
52dd3e0e85 refactor(developer): move compiler callbacks out of kvks file reader 2022-09-27 05:04:04 +10:00
Marc Durdin
5c65405f65 refactor(developer): move compiler callbacks out of ldml xml reader 2022-09-27 04:52:00 +10:00
Keyman Server
497a8613db
Merge pull request #7356 from keymanapp/auto/version-master-16.0.71
auto: increment master version to 16.0.71
2022-09-27 04:02:24 +10:00
Keyman Build Agent
ee86250eec auto: increment master version to 16.0.71 2022-09-26 14:01:38 -04:00
Marc Durdin
9480d8931e chore(developer): remove commented code 2022-09-26 20:41:59 +10:00
Marc Durdin
74fc795c1c feat(developer): refactor CompilerCallbacks in tests
Now has a shared object for all tests, reset between tests, and if the
test fails, prints any reported compiler messages.

Also updates kvk and kvks tests with refactored names from previous
commit.
2022-09-26 20:07:00 +10:00
Marc Durdin
50db7a2c9b feat(developer): add schemas for .kvk and .kvks
Also minor tweaks around reading .xml files.
2022-09-26 20:05:52 +10:00
Darcy Wong
28fd95fce2
Merge pull request #7350 from keymanapp/chore/history-15-0-stable
chore(common): Add 15.0 stable entries to HISTORY.md 🍒
2022-09-26 12:57:29 +07:00
Darcy Wong
4e1efb2fc1
Merge pull request #7347 from keymanapp/fix/android/en-language-name
fix(android): Add language name when installing default lexical-model
2022-09-26 08:13:49 +07:00
Marc Durdin
c7740a39a2 feat(developer): kvk support
Part of #7238.

Supports reading and writing .kvk files, and reading .kvks files,
to/from an in-memory VisualKeyboard object.

TODO:
 - Full validation of .kvks files
 - Writing .kvks files
 - Some cleanup of API surfaces for consistency
2022-09-26 09:29:38 +10:00
sgschantz
ae3b9c82bc improved comments and updated alert string 2022-09-25 17:21:45 +07:00
sgschantz
c6a6e32e11 add mechanism to check for required permissions and prompt the user before the system does 2022-09-25 16:18:07 +07:00
Marc Durdin
828cbdf584
Merge pull request #7341 from keymanapp/feat/developer/epic-ldml/7277-kmc-makes-keyboard-packages
feat(developer): fixes to kmc-package for keyboard support 🙀
2022-09-24 10:12:38 +10:00
Marc Durdin
0502d6ccbd
Merge pull request #7342 from keymanapp/chore/epic-ldml/merge-master-to-feature-ldml
chore: merge master into feature-ldml 🙀
2022-09-24 10:12:00 +10:00
Steven R. Loomis
aff9a93960
Merge pull request #7300 from keymanapp/chore/core/7276-checksums-epic-ldml
chore(core): ignore checksum in 16.0 🙀
2022-09-23 15:53:42 -05:00
Steven R. Loomis
03012248a2 chore(windows): remove crc32 from tike 2022-09-23 11:48:47 -05:00
Darcy Wong
3239a1e7e3 fix(web): Update spacebar caption when refreshing layout 2022-09-23 12:45:17 +07:00
Darcy Wong
6418852eec chore(common): Add 15.0 stable entries to HISTORY.md 2022-09-23 10:11:21 +07:00
Steven R. Loomis
1ac4e116b4 chore(windows): remove crc32 from mcompile 2022-09-22 18:42:38 -05:00
Steven R. Loomis
700db810e0 fix(core): fix for incorrect earlier fix 2022-09-22 17:26:39 -05:00
Steven R. Loomis
de3225a4f5 Merge remote-tracking branch 'origin/feature-ldml' into chore/core/7276-checksums-epic-ldml 2022-09-22 17:13:27 -05:00
Marc Durdin
33fd8cffba chore(developer): ts v4.8.3 upgrade breaks mocha 10.0.0 with ts-node
Mocha with ts-register was failing with an error for Keyman Developer
Server.

```
Error: Debug Failure. False expression: Non-string value passed to
`ts.resolveTypeReferenceDirective`, likely by a wrapping package working
with an outdated `resolveTypeReferenceDirectives` signature. This is
probably not a problem in TS itself.
```

The `^4.5.4` version reference for typescript was too lax, and so npm
gave us typescript 4.8.3, which was the latest version in use in the
repo in this branch (in kmc-model). This is also why the build only
failed on this branch -- on master branch, the latest version referenced
was still 4.5.4.

Changing to `~4.5.4` ensures that it stayed on the 4.5.x series, and
mocha then ran version 4.5.5 of tsc.

This is something we should resolve when we move the entire repo to tsc
4.8+. Currently we are still on 4.5.

Note: it may be sensible to review all versioning for typescript,
because the minor version changes are causing functionality breaks,
which kinda violates the spirit of semver ("MINOR version when you add
functionality in a backwards compatible manner"). We can be more
restrictive by updating all package.json references to typescript to
`~4.5.4` instead of the current `^4.5.4` in use throughout. If/when we
do this, we will need to check our ts-node references also.
2022-09-23 05:25:24 +10:00
Marc Durdin
407694a54b
Merge pull request #7331 from keymanapp/chore/merge-master-into-kmcompx
chore: merge master changes into kmcompx branch 🚑
2022-09-23 04:58:55 +10:00
Joshua A. Horton
be6bf141c1 fix(web): vscode merge got in the way 2022-09-22 15:46:49 +07:00
Joshua A. Horton
dce7ef74b2 fix(web): fixes for non-focus-related unit-test breaks 2022-09-22 15:44:56 +07:00
Darcy Wong
8a4dbd76ec fix(android/engine): Refresh OSK after changing spacebar caption 2022-09-22 15:35:50 +07:00
Darcy Wong
f21ffde0fc fix(android/engine): Add language name when installing lexical-model 2022-09-22 14:28:54 +07:00
Joshua A. Horton
12c1de791e change(common/models): better handling of prior commit 2022-09-22 09:46:18 +07:00
Joshua A. Horton
5b2ba7aa70 chore(common/models): fixes script warning for unstarted action 2022-09-22 09:40:51 +07:00
Joshua A. Horton
cb8e0bc1b3 chore(common): npm audit fix - ansi-regex update 2022-09-22 09:13:21 +07:00
Joshua A. Horton
fc105b1dab chore(web): updates karma dev-dependency 2022-09-22 09:13:20 +07:00
Joshua A. Horton
cf1088027b fix(common/web): mocks did not update deadkey positions on context manipulation 2022-09-22 08:57:45 +07:00
Marc Durdin
6f949ad63f chore(developer): fixup dependency type changes
* xml2js, `emptyTag` property: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/59259
* semver `parse` `includePrerelease` property: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/61586#discussion_r939877412
* commander use needed to be declared for hextobin
2022-09-22 11:46:44 +10:00