@keymanapp/kmc-kmn 18.0.186-alpha → 18.0.188-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/import/kmcmplib/wasm-host.wasm +0 -0
- package/build/src/kmw-compiler/kmw-compiler-messages.d.ts +5 -6
- package/build/src/kmw-compiler/kmw-compiler-messages.d.ts.map +1 -1
- package/build/src/kmw-compiler/kmw-compiler-messages.js +37 -12
- package/build/src/kmw-compiler/kmw-compiler-messages.js.map +1 -1
- package/package.json +5 -5
|
Binary file
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { KmnCompilerMessages } from "../compiler/kmn-compiler-messages.js";
|
|
2
|
-
import { CompilerEvent } from "@keymanapp/developer-utils";
|
|
3
2
|
import { KeyAddress } from "./validate-layout-file.js";
|
|
4
3
|
/**
|
|
5
4
|
* @internal
|
|
@@ -12,22 +11,22 @@ export declare class KmwCompilerMessages extends KmnCompilerMessages {
|
|
|
12
11
|
platformName: string;
|
|
13
12
|
layerId: string;
|
|
14
13
|
address: KeyAddress;
|
|
15
|
-
}) => CompilerEvent;
|
|
14
|
+
}) => import("@keymanapp/developer-utils").CompilerEvent;
|
|
16
15
|
static ERROR_InvalidTouchLayoutFileFormat: number;
|
|
17
16
|
static Error_InvalidTouchLayoutFileFormat: (o: {
|
|
18
17
|
msg: string;
|
|
19
|
-
}) => CompilerEvent;
|
|
18
|
+
}) => import("@keymanapp/developer-utils").CompilerEvent;
|
|
20
19
|
static ERROR_TouchLayoutFileDoesNotExist: number;
|
|
21
20
|
static Error_TouchLayoutFileDoesNotExist: (o: {
|
|
22
21
|
filename: string;
|
|
23
|
-
}) => CompilerEvent;
|
|
22
|
+
}) => import("@keymanapp/developer-utils").CompilerEvent;
|
|
24
23
|
static HINT_TouchLayoutUsesUnsupportedGesturesDownlevel: number;
|
|
25
24
|
static Hint_TouchLayoutUsesUnsupportedGesturesDownlevel: (o: {
|
|
26
25
|
keyId: string;
|
|
27
|
-
}) => CompilerEvent;
|
|
26
|
+
}) => import("@keymanapp/developer-utils").CompilerEvent;
|
|
28
27
|
static INFO_MinimumWebEngineVersion: number;
|
|
29
28
|
static Info_MinimumWebEngineVersion: (o: {
|
|
30
29
|
version: string;
|
|
31
|
-
}) => CompilerEvent;
|
|
30
|
+
}) => import("@keymanapp/developer-utils").CompilerEvent;
|
|
32
31
|
}
|
|
33
32
|
//# sourceMappingURL=kmw-compiler-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kmw-compiler-messages.d.ts","sourceRoot":"","sources":["../../../src/kmw-compiler/kmw-compiler-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"kmw-compiler-messages.d.ts","sourceRoot":"","sources":["../../../src/kmw-compiler/kmw-compiler-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEvF,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AASvD;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,mBAAmB;IAkB1D,MAAM,CAAC,qCAAqC,SAAqB;IACjE,MAAM,CAAC,qCAAqC,MAAM;QAAC,KAAK,EAAC,MAAM,CAAC;QAAC,YAAY,EAAC,MAAM,CAAC;QAAC,OAAO,EAAC,MAAM,CAAC;QAAC,OAAO,EAAC,UAAU,CAAA;KAAC,wDAUtH;IAEH,MAAM,CAAC,kCAAkC,SAAqB;IAC9D,MAAM,CAAC,kCAAkC,MAAM;QAAC,GAAG,EAAE,MAAM,CAAA;KAAC,wDAMzD;IAEH,MAAM,CAAC,iCAAiC,SAAqB;IAC7D,MAAM,CAAC,iCAAiC,MAAM;QAAC,QAAQ,EAAC,MAAM,CAAA;KAAC,wDAK5D;IAEH,MAAM,CAAC,gDAAgD,SAAoB;IAC3E,MAAM,CAAC,gDAAgD,MAAM;QAAC,KAAK,EAAC,MAAM,CAAA;KAAC,wDAQxE;IAEH,MAAM,CAAC,4BAA4B,SAAoB;IACvD,MAAM,CAAC,4BAA4B,MAAM;QAAC,OAAO,EAAC,MAAM,CAAA;KAAC,wDAStD;CAGJ"}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { keyAddress, KmnCompilerMessages } from "../compiler/kmn-compiler-messages.js";
|
|
2
|
-
import { CompilerErrorNamespace, CompilerErrorSeverity, CompilerMessageDef as def, CompilerMessageSpec } from "@keymanapp/developer-utils";
|
|
3
|
-
import { kmnfile } from "./compiler-globals.js";
|
|
2
|
+
import { CompilerErrorNamespace, CompilerErrorSeverity, CompilerMessageDef as def, CompilerMessageSpec as m } from "@keymanapp/developer-utils";
|
|
4
3
|
const Namespace = CompilerErrorNamespace.KmwCompiler;
|
|
5
4
|
const SevInfo = CompilerErrorSeverity.Info | Namespace;
|
|
6
5
|
const SevHint = CompilerErrorSeverity.Hint | Namespace;
|
|
7
6
|
// const SevWarn = CompilerErrorSeverity.Warn | Namespace;
|
|
8
7
|
const SevError = CompilerErrorSeverity.Error | Namespace;
|
|
9
8
|
// const SevFatal = CompilerErrorSeverity.Fatal | Namespace;
|
|
10
|
-
const m = (code, message, o) => ({
|
|
11
|
-
...CompilerMessageSpec(code, message),
|
|
12
|
-
filename: o?.filename ?? kmnfile,
|
|
13
|
-
line: o?.line,
|
|
14
|
-
});
|
|
15
9
|
/**
|
|
16
10
|
* @internal
|
|
17
11
|
* Error messages reported by the KeymanWeb .kmn compiler.
|
|
@@ -27,16 +21,47 @@ export class KmwCompilerMessages extends KmnCompilerMessages {
|
|
|
27
21
|
// Following messages are kmw-compiler only, so use KmwCompiler error namespace
|
|
28
22
|
// 0x0001 - Reserved for removed identifier ERROR_NotAnyRequiresVersion14 =
|
|
29
23
|
// SevError | 0x0001, added in 17.0, removed in 18.0
|
|
24
|
+
//------------------------------------------------------------------------------|
|
|
25
|
+
// max length of detail message lines (checked by verifyCompilerMessagesObject) |
|
|
26
|
+
//------------------------------------------------------------------------------|
|
|
30
27
|
static ERROR_TouchLayoutIdentifierRequires15 = SevError | 0x0002;
|
|
31
|
-
static Error_TouchLayoutIdentifierRequires15 = (o) => m(this.ERROR_TouchLayoutIdentifierRequires15, `Key "${def(o.keyId)}" on "${def(o.platformName)}", layer "${def(o.layerId)}" (${keyAddress(o.address)}) has a
|
|
28
|
+
static Error_TouchLayoutIdentifierRequires15 = (o) => m(this.ERROR_TouchLayoutIdentifierRequires15, `Key "${def(o.keyId)}" on "${def(o.platformName)}", layer "${def(o.layerId)}" (${keyAddress(o.address)}) has a ` +
|
|
29
|
+
`multi-part identifier which requires version 15.0 or newer`, `
|
|
30
|
+
The Unicode key format \`U_xxxx_yyyy\` is supported in Keyman 15.0 and later
|
|
31
|
+
versions.
|
|
32
|
+
|
|
33
|
+
For example, \`U_0041_0300\` means the key will by default emit
|
|
34
|
+
\`U+0041 U+0300\` (À); earlier versions allow only a single Unicode value in
|
|
35
|
+
the identifier, e.g. \`U_0300\`.
|
|
36
|
+
`);
|
|
32
37
|
static ERROR_InvalidTouchLayoutFileFormat = SevError | 0x0003;
|
|
33
|
-
static Error_InvalidTouchLayoutFileFormat = (o) => m(this.ERROR_InvalidTouchLayoutFileFormat, `Invalid touch layout file: ${def(o.msg)}`
|
|
38
|
+
static Error_InvalidTouchLayoutFileFormat = (o) => m(this.ERROR_InvalidTouchLayoutFileFormat, `Invalid touch layout file: ${def(o.msg)}`, `
|
|
39
|
+
The referenced .keyman-touch-layout file contained invalid JSON content. The
|
|
40
|
+
touch layout file format is documented at
|
|
41
|
+
https://help.keyman.com/developer/current-version/reference/file-types/keyman-touch-layout.
|
|
42
|
+
`);
|
|
34
43
|
static ERROR_TouchLayoutFileDoesNotExist = SevError | 0x0004;
|
|
35
|
-
static Error_TouchLayoutFileDoesNotExist = (o) => m(this.ERROR_TouchLayoutFileDoesNotExist, `Touch layout file ${def(o.filename)} does not exist`
|
|
44
|
+
static Error_TouchLayoutFileDoesNotExist = (o) => m(this.ERROR_TouchLayoutFileDoesNotExist, `Touch layout file ${def(o.filename)} does not exist`, `
|
|
45
|
+
The compiler was unable to load the referenced .keyman-touch-layout file.
|
|
46
|
+
Verify that the referenced file does exist and is accessible to the compiler.
|
|
47
|
+
`);
|
|
36
48
|
static HINT_TouchLayoutUsesUnsupportedGesturesDownlevel = SevHint | 0x0005;
|
|
37
|
-
static Hint_TouchLayoutUsesUnsupportedGesturesDownlevel = (o) => m(this.HINT_TouchLayoutUsesUnsupportedGesturesDownlevel, `The touch layout uses a flick or multi-tap gesture on key ${def(o.keyId)}, which
|
|
49
|
+
static Hint_TouchLayoutUsesUnsupportedGesturesDownlevel = (o) => m(this.HINT_TouchLayoutUsesUnsupportedGesturesDownlevel, `The touch layout uses a flick or multi-tap gesture on key ${def(o.keyId)}, which ` +
|
|
50
|
+
`is only available on version 17.0+ of Keyman`, `
|
|
51
|
+
Flick and multi-tap gesture support was added to Keyman mobile platforms in
|
|
52
|
+
version 17.0. Keyboards which include these gestures can still work in earlier
|
|
53
|
+
versions of Keyman, but any flick and multi-tap gestures will not be available,
|
|
54
|
+
which may make some characters inaccesssible.
|
|
55
|
+
`);
|
|
38
56
|
static INFO_MinimumWebEngineVersion = SevInfo | 0x0006;
|
|
39
|
-
static Info_MinimumWebEngineVersion = (o) => m(this.INFO_MinimumWebEngineVersion, `The compiler has assigned a minimum web engine version of ${o.version} based on
|
|
57
|
+
static Info_MinimumWebEngineVersion = (o) => m(this.INFO_MinimumWebEngineVersion, `The compiler has assigned a minimum web engine version of ${o.version} based on ` +
|
|
58
|
+
`features used in this keyboard`, `
|
|
59
|
+
If the [\`&version\` store](https://help.keyman.com/developer/language/reference/version)
|
|
60
|
+
is not present in the keyboard source, the compiler attempts to assign the
|
|
61
|
+
lowest possible Keyman version that can support the features found in the
|
|
62
|
+
keyboard. Details on the history of language features and supported versions
|
|
63
|
+
can be found at https://help.keyman.com/developer/language/guide/history.
|
|
64
|
+
`);
|
|
40
65
|
}
|
|
41
66
|
;
|
|
42
67
|
//# sourceMappingURL=kmw-compiler-messages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kmw-compiler-messages.js","sourceRoot":"","sources":["../../../src/kmw-compiler/kmw-compiler-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"kmw-compiler-messages.js","sourceRoot":"","sources":["../../../src/kmw-compiler/kmw-compiler-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,kBAAkB,IAAI,GAAG,EAAE,mBAAmB,IAAI,CAAC,EAAE,MAAM,4BAA4B,CAAC;AAGhJ,MAAM,SAAS,GAAG,sBAAsB,CAAC,WAAW,CAAC;AACrD,MAAM,OAAO,GAAG,qBAAqB,CAAC,IAAI,GAAG,SAAS,CAAC;AACvD,MAAM,OAAO,GAAG,qBAAqB,CAAC,IAAI,GAAG,SAAS,CAAC;AACvD,0DAA0D;AAC1D,MAAM,QAAQ,GAAG,qBAAqB,CAAC,KAAK,GAAG,SAAS,CAAC;AACzD,4DAA4D;AAE5D;;;GAGG;AACH,MAAM,OAAO,mBAAoB,SAAQ,mBAAmB;IAC1D,6DAA6D;IAC7D,wEAAwE;IACxE,uEAAuE;IACvE,4EAA4E;IAC5E,6EAA6E;IAC7E,8DAA8D;IAC9D,6BAA6B;IAE7B,+EAA+E;IAE/E,2EAA2E;IAC3E,6DAA6D;IAE7D,iFAAiF;IACjF,iFAAiF;IACjF,iFAAiF;IAEjF,MAAM,CAAC,qCAAqC,GAAG,QAAQ,GAAG,MAAM,CAAC;IACjE,MAAM,CAAC,qCAAqC,GAAG,CAAC,CAAyE,EAAE,EAAE,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C,CAAC,CAAC;;AAGJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"url": "https://github.com/keymanapp/keyman/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@keymanapp/common-types": "18.0.
|
|
30
|
-
"@keymanapp/keyman-version": "18.0.
|
|
31
|
-
"@keymanapp/developer-utils": "18.0.
|
|
29
|
+
"@keymanapp/common-types": "18.0.188-alpha",
|
|
30
|
+
"@keymanapp/keyman-version": "18.0.188-alpha",
|
|
31
|
+
"@keymanapp/developer-utils": "18.0.188-alpha"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@keymanapp/developer-test-helpers": "18.0.
|
|
34
|
+
"@keymanapp/developer-test-helpers": "18.0.188-alpha",
|
|
35
35
|
"@types/mocha": "^5.2.7",
|
|
36
36
|
"@types/node": "^20.4.1",
|
|
37
37
|
"@types/semver": "^7.3.12",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"type": "git",
|
|
65
65
|
"url": "git+https://github.com/keymanapp/keyman.git"
|
|
66
66
|
},
|
|
67
|
-
"version": "18.0.
|
|
67
|
+
"version": "18.0.188-alpha"
|
|
68
68
|
}
|