Marc Durdin
b54b005830
refactor(common): move remaining LDML keyboard types into LdmlKeyboardTypes
...
Follows: #12712
2024-11-27 11:52:53 +07:00
Marc Durdin
e8bc0773df
refactor(common): LexicalModelTypes tests
...
Fixes : #12516
2024-11-27 10:03:13 +07:00
Marc Durdin
b10634eb97
refactor(common): move all lexical model types into LexicalModelTypes container
...
Many of the types had very generic names (e.g. `Configuration`), and as
the types are now exported from `@keymanapp/common-types`, this was
unhelpful.
For units with many references, I used TypeScript's import-equals to
reduce the change impact. For units with only a few references, I added
the `LexicalModelTypes.` prefix to the references in source.
(Best reference I could find for import-equals: b722fa4e49 )
Fixes : #12516
2024-11-27 09:46:09 +07:00
Marc Durdin
5a93bdf6c2
chore(developer): make package subfile description fully optional
...
The package subfile description field is never really used in the
end-user apps. As it is meaningless metadata, we'll make it fully
optional, and start to remove all references in the designers and
compilers.
TODO: For packages targeting Keyman 18.0+, we should consider removing
the description field altogether from the subfiles.
2024-11-13 10:03:26 +07:00
Marc Durdin
eefbdc413d
Merge pull request #12555 from keymanapp/feat/developer/kmc-copy
...
feat(developer): kmc-copy
2024-11-08 05:14:02 +01:00
Marc Durdin
b80c124ec8
Merge pull request #11014 from keymanapp/feat/developer/kmc-generate
...
feat(developer): kmc generate
2024-11-08 05:13:51 +01:00
Steven R. Loomis
3eac4f12c9
fix(common): check for invalid markers
...
- pattern parser update
- correct spelling of Error_InvalidVariableIdentifier
- track and report bad marker strings (look like markers but not)
- fix: may have missed markers mentioned in variables
- tests for above
Fixes: 12467
2024-11-04 10:15:56 -06:00
Steven R. Loomis
fb4f22da66
fix(common): check for invalid markers
...
- pattern parser update
Fixes: 12467
2024-11-01 16:50:25 -05:00
Marc Durdin
40db1c2051
feat(common): add isDirectory, helper functions for kmc-copy
2024-10-22 10:28:03 +07:00
Marc Durdin
0d9688451d
Merge branch 'master' into feat/developer/kmc-generate
2024-10-11 03:26:54 +02:00
Eberhard Beilharz
4f3a68494c
refactor(web): address code review comments
2024-10-10 09:09:17 +02:00
Eberhard Beilharz
9885a477ec
refactor(web): address code review comments
2024-10-09 20:37:51 +02:00
Eberhard Beilharz
3b9c6ef2e4
refactor(web): move KeyboardObject type to common/web/types
...
Fixes : #11612
2024-10-08 18:53:14 +02:00
Marc Durdin
10e4bba100
Merge branch 'master' into feat/developer/kmc-generate
2024-09-26 18:55:20 +02:00
Marc Durdin
201f48a1f0
Merge pull request #12404 from keymanapp/fix/developer/12403-validate-string-use-before-definition
...
fix(developer): check vars string usage before definition
2024-09-17 00:40:24 +02:00
Marc Durdin
8424cb9349
Merge branch 'master' into feat/developer/kmc-generate
2024-09-12 08:18:37 +02:00
Marc Durdin
b7810bdd2e
fix(developer): check vars string usage before definition
...
Validation of vars was not properly checking for forward references to
string variables. This, coupled with a null vs undefined bug in
subsequent use, meant that forward reference variables were ending up
with a literal string value of 'undefined'.
This also fixes the test for visual-keyboard-compiler, where the fixture
was actually buggy and was the trigger for investigating this problem.
Fixes : #12403
Relates-to: #12395
2024-09-12 09:18:06 +07:00
Eberhard Beilharz
1fe6a0370f
refactor(web): move common/web/eslint → common/tools/eslint
...
Fixes : #12386
2024-09-10 19:16:52 +02:00
Eberhard Beilharz
4efe95a4b5
refactor(web): additional exports
...
Missed a few exports in the last commit.
2024-09-10 10:10:17 +02:00
Eberhard Beilharz
593510a204
refactor(web): explicitly list exports of lexical model types
...
Addresses code review comments.
2024-09-10 09:38:35 +02:00
Marc Durdin
4a2e6fd0a5
test(developer): add unit test for generate module
2024-09-10 10:54:22 +07: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
dc265debd8
docs(web): more adjustments based on review comments
2024-08-29 15:00:10 +07:00
Eberhard Beilharz
9fa3eb098a
Apply suggestions from code review
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2024-08-29 14:54:35 +07:00
Eberhard Beilharz
1020977530
docs(web): add documentation comments for touch layout interfaces
2024-08-29 13:21:08 +07: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
Marc Durdin
d55558fb31
Merge pull request #12101 from keymanapp/refactor/common/9665-move-xml2js-and-related-deps-to-developer
...
refactor(common): move xml2js and related deps to @keymanapp/developer-utils 🐉
2024-08-07 15:16:07 +10:00
Marc Durdin
32b4711659
Merge branch 'master' into refactor/common/9665-move-compiler-interfaces-to-developer
2024-08-07 15:15:45 +10:00
Marc Durdin
ed143fb333
Merge branch 'master' into refactor/common/9665-move-ldml-keyboard-source-file-to-developer
2024-08-07 15:15:04 +10:00
Marc Durdin
ec72245575
Merge pull request #11765 from keymanapp/refactor/common/9665-move-keyman-touch-layout-file-to-developer
...
refactor(common): move .keyman-touch-layout reader/writer to @keymanapp/developer-utils 🐉
2024-08-07 15:14:06 +10:00
Marc Durdin
e9d054ab2c
Merge branch 'master' into refactor/common/9665-move-kvk-file-to-developer
2024-08-07 15:13:41 +10:00
Marc Durdin
88506cea6b
Merge branch 'master' into refactor/common/9665-move-kps-file-type-to-developer
2024-08-07 15:13:10 +10:00
Marc Durdin
7849b7734b
Merge pull request #11531 from keymanapp/refactor/common/9665-move-project-file-type-to-developer
...
refactor(common): move kpj-related files into developer-utils 🐉
2024-08-07 15:12:31 +10:00
Marc Durdin
edf47d7f43
refactor(common): move xml2js and related deps to @keymanapp/developer-utils
...
Fixes : #9665
2024-08-06 05:19:30 +07:00
Marc Durdin
42698eb96d
chore: Update common/web/types/build.sh
2024-08-05 09:45:27 +10:00
Marc Durdin
e67aed1606
refactor(common): move compiler-interfaces to @keymanapp/developer-utils
...
This should be the last step in the refactoring.
Fixes : #9665
2024-08-02 13:49:59 +07:00
Marc Durdin
d3d3ac1eec
refactor(common): move LDML keyboard .xml reader/writer and kmx-plus builder to @keymanapp/developer-utils
...
Relates-to: #9665
2024-08-02 10:23:11 +07: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
Marc Durdin
08803111e5
Merge branch 'refactor/common/9665-move-kvk-file-to-developer' into refactor/common/9665-move-keyman-touch-layout-file-to-developer
2024-08-01 10:35:48 +10:00
Marc Durdin
53551f5662
Merge branch 'refactor/common/9665-move-kps-file-type-to-developer' into refactor/common/9665-move-kvk-file-to-developer
2024-08-01 10:35:33 +10:00
Marc Durdin
ad9ba1f188
Merge branch 'refactor/common/9665-move-project-file-type-to-developer' into refactor/common/9665-move-kps-file-type-to-developer
2024-08-01 10:34:05 +10:00
Marc Durdin
d8986be12f
refactor(common): merge master into branch
2024-08-01 07:07:07 +07:00
Eberhard Beilharz
1389d40965
Merge branch 'master' into change/web/11878_remove-es5
2024-07-31 15:28:38 +02:00
Eberhard Beilharz
e42a895977
fix(web): export consts
2024-07-30 09:47:02 +02:00
Eberhard Beilharz
fd8ffb5efc
chore(web): don't deep import and remove sub-export of util
...
Addresses code review comments and reverts eb9205f46e and
partially reverts 5552fdd5ad .
2024-07-29 17:43:34 +02:00
Eberhard Beilharz
02170dd062
chore(web): update common/web/types/src/main.ts
...
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2024-07-25 12:28:11 +02:00
Eberhard Beilharz
5552fdd5ad
chore(web): expose util.ts as separate sub-export
...
The exports of the `util.ts` can now be imported as
`@keymanapp/common-types/utils`. Those methods are used by developer.
We still export the `Uni_IsSurrogate*` methods in `main.js` because they
are needed by the keyboard-processor, but exporting everything would
increase the size of the resulting `keymanweb.js`. Doing it this way
keeps the size the same.
2024-07-24 17:33:48 +02:00
Marc Durdin
3497e97b00
feat(developer): automatic version detection for U_xxxx_yyyy ids
...
Currently, automatic Keyman minimum version determination works for all
features in Keyman keyboards _except_ `U_xxxx_yyyy` touch key
identifiers.
This change adds the automatic keyboard versioning functionality to the
keymanweb compiler as well, following the pattern that's in kmcmplib.
This makes the `store(&version)` line completely optional, and it may
be possible to deprecate it in future versions of Keyman Developer.
2024-07-13 07:28:18 +10:00
Joshua A. Horton
877cd9767d
fix(common): add workaround for divergence of EventEmitter3 from node's version
...
Node's version has special behavior for events named 'error' - if no handler, it auto-throws. EventEmitter3 does not include this.
2024-07-04 20:49:31 +02:00
Eberhard Beilharz
afe25eda24
change(web): remove support for es5
...
Fixes : #11878
2024-07-04 20:49:30 +02:00