@keymanapp/kmc-kmn 17.0.255-alpha → 17.0.257-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/compiler/compiler.d.ts +93 -95
- package/build/src/compiler/compiler.d.ts.map +1 -1
- package/build/src/compiler/kmn-compiler-messages.d.ts +234 -236
- package/build/src/compiler/kmn-compiler-messages.d.ts.map +1 -1
- package/build/src/compiler/kmn-compiler-messages.js +24 -2
- package/build/src/compiler/kmn-compiler-messages.js.map +1 -1
- package/build/src/import/kmcmplib/wasm-host.d.ts +3 -5
- package/build/src/import/kmcmplib/wasm-host.d.ts.map +1 -1
- package/build/src/import/kmcmplib/wasm-host.wasm +0 -0
- package/build/src/kmw-compiler/compiler-globals.d.ts +20 -22
- package/build/src/kmw-compiler/compiler-globals.d.ts.map +1 -1
- package/build/src/kmw-compiler/constants.d.ts +17 -19
- package/build/src/kmw-compiler/constants.d.ts.map +1 -1
- package/build/src/kmw-compiler/javascript-strings.d.ts +33 -35
- package/build/src/kmw-compiler/javascript-strings.d.ts.map +1 -1
- package/build/src/kmw-compiler/keymanweb-key-codes.d.ts +23 -25
- package/build/src/kmw-compiler/keymanweb-key-codes.d.ts.map +1 -1
- package/build/src/kmw-compiler/keymanweb-key-codes.js +17 -2
- package/build/src/kmw-compiler/keymanweb-key-codes.js.map +1 -1
- package/build/src/kmw-compiler/kmw-compiler-messages.d.ts +105 -107
- package/build/src/kmw-compiler/kmw-compiler-messages.d.ts.map +1 -1
- package/build/src/kmw-compiler/kmw-compiler.d.ts +14 -16
- package/build/src/kmw-compiler/kmw-compiler.d.ts.map +1 -1
- package/build/src/kmw-compiler/util.d.ts +75 -77
- package/build/src/kmw-compiler/util.d.ts.map +1 -1
- package/build/src/kmw-compiler/validate-layout-file.d.ts +8 -10
- package/build/src/kmw-compiler/validate-layout-file.d.ts.map +1 -1
- package/build/src/kmw-compiler/visual-keyboard-compiler.d.ts +3 -5
- package/build/src/kmw-compiler/visual-keyboard-compiler.d.ts.map +1 -1
- package/build/src/main.d.ts +4 -6
- package/build/src/main.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,95 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
private
|
|
49
|
-
private
|
|
50
|
-
private
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
*
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
private
|
|
61
|
-
private
|
|
62
|
-
private
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* @param
|
|
73
|
-
* @
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
private
|
|
79
|
-
private
|
|
80
|
-
private
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
*
|
|
87
|
-
* @param
|
|
88
|
-
* @
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
//# debugId=1303784e-c67b-5a29-866d-2ed0aac031f7
|
|
95
|
-
//# sourceMappingURL=compiler.d.ts.map
|
|
1
|
+
import { UnicodeSetParser, UnicodeSet, Osk, KeymanCompiler, KeymanCompilerArtifacts, KeymanCompilerArtifactOptional, KeymanCompilerResult } from '@keymanapp/common-types';
|
|
2
|
+
import { CompilerCallbacks, CompilerOptions } from '@keymanapp/common-types';
|
|
3
|
+
export declare const STORETYPE_STORE = 1;
|
|
4
|
+
export declare const STORETYPE_RESERVED = 2;
|
|
5
|
+
export declare const STORETYPE_OPTION = 4;
|
|
6
|
+
export declare const STORETYPE_DEBUG = 8;
|
|
7
|
+
export declare const STORETYPE_CALL = 16;
|
|
8
|
+
export declare const STORETYPE__MASK = 31;
|
|
9
|
+
export interface CompilerResultExtraStore {
|
|
10
|
+
storeType: number;
|
|
11
|
+
name: string;
|
|
12
|
+
line: number;
|
|
13
|
+
}
|
|
14
|
+
export interface CompilerResultExtraGroup {
|
|
15
|
+
isReadOnly: boolean;
|
|
16
|
+
name: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const COMPILETARGETS_KMX = 1;
|
|
19
|
+
export declare const COMPILETARGETS_JS = 2;
|
|
20
|
+
export declare const COMPILETARGETS__MASK = 3;
|
|
21
|
+
/**
|
|
22
|
+
* Data in CompilerResultExtra comes from kmcmplib
|
|
23
|
+
*/
|
|
24
|
+
export interface KmnCompilerResultExtra {
|
|
25
|
+
/**
|
|
26
|
+
* A bitmask, consisting of COMPILETARGETS_KMX and/or COMPILETARGETS_JS
|
|
27
|
+
*/
|
|
28
|
+
targets: number;
|
|
29
|
+
kvksFilename?: string;
|
|
30
|
+
displayMapFilename?: string;
|
|
31
|
+
stores: CompilerResultExtraStore[];
|
|
32
|
+
groups: CompilerResultExtraGroup[];
|
|
33
|
+
}
|
|
34
|
+
export interface KmnCompilerArtifacts extends KeymanCompilerArtifacts {
|
|
35
|
+
kmx?: KeymanCompilerArtifactOptional;
|
|
36
|
+
kvk?: KeymanCompilerArtifactOptional;
|
|
37
|
+
js?: KeymanCompilerArtifactOptional;
|
|
38
|
+
}
|
|
39
|
+
export interface KmnCompilerResult extends KeymanCompilerResult {
|
|
40
|
+
artifacts: KmnCompilerArtifacts;
|
|
41
|
+
extra: KmnCompilerResultExtra;
|
|
42
|
+
displayMap?: Osk.PuaMap;
|
|
43
|
+
}
|
|
44
|
+
export interface KmnCompilerOptions extends CompilerOptions {
|
|
45
|
+
}
|
|
46
|
+
export declare class KmnCompiler implements KeymanCompiler, UnicodeSetParser {
|
|
47
|
+
private readonly callbackID;
|
|
48
|
+
private callbacks;
|
|
49
|
+
private wasmExports;
|
|
50
|
+
private options;
|
|
51
|
+
constructor();
|
|
52
|
+
init(callbacks: CompilerCallbacks, options: KmnCompilerOptions): Promise<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* Verify that wasm is spun up OK.
|
|
55
|
+
* @returns true if OK
|
|
56
|
+
*/
|
|
57
|
+
verifyInitialized(): boolean;
|
|
58
|
+
write(artifacts: KmnCompilerArtifacts): Promise<boolean>;
|
|
59
|
+
private compilerMessageCallback;
|
|
60
|
+
private cachedFile;
|
|
61
|
+
private loadFileCallback;
|
|
62
|
+
private copyWasmResult;
|
|
63
|
+
/**
|
|
64
|
+
* By default, when a `Uint8Array` is created from an `ArrayBuffer` (e.g.
|
|
65
|
+
* `Module.HEAP8.buffer`), it is a dynamic view into that buffer. This module
|
|
66
|
+
* buffer can be dynamically reallocated at any time, which can happen when
|
|
67
|
+
* allocating memory in WASM code (so the change will look _really_ weird in
|
|
68
|
+
* a stack trace). Thus, to ensure we don't trip over ourselves, we need to
|
|
69
|
+
* copy the buffer. Fortunately, creating a `Uint8Array` from a `Uint8Array`
|
|
70
|
+
* copies the data, and is pretty quick.
|
|
71
|
+
* @param offset Offset into the WASM memory space, in bytes
|
|
72
|
+
* @param size Size of the buffer to copy, in bytes
|
|
73
|
+
* @returns A _copy_ of the data in a new Uint8Array
|
|
74
|
+
*/
|
|
75
|
+
private copyWasmBuffer;
|
|
76
|
+
run(infile: string, outfile: string): Promise<KmnCompilerResult>;
|
|
77
|
+
private runWebCompiler;
|
|
78
|
+
private keyboardIdFromKmnFilename;
|
|
79
|
+
private runKvkCompiler;
|
|
80
|
+
private loadDisplayMapping;
|
|
81
|
+
testSentry(): any;
|
|
82
|
+
/** convert `\u{1234}` to `\u1234` etc */
|
|
83
|
+
static fixNewPattern(pattern: string): string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @param pattern UnicodeSet pattern such as `[a-z]`
|
|
87
|
+
* @param rangeCount number of ranges to allocate
|
|
88
|
+
* @returns UnicodeSet accessor object, or null on failure
|
|
89
|
+
*/
|
|
90
|
+
parseUnicodeSet(pattern: string, rangeCount: number): UnicodeSet | null;
|
|
91
|
+
sizeUnicodeSet(pattern: string): number;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=compiler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../../../src/compiler/compiler.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,GAAG,EAAiC,cAAc,EAAE,uBAAuB,EAAE,8BAA8B,EAAE,oBAAoB,EAA0B,MAAM,yBAAyB,CAAC;AAClO,OAAO,EAAE,iBAAiB,EAAiB,eAAe,EAAkD,MAAM,yBAAyB,CAAC;AAS5I,eAAO,MAAM,eAAe,IAAa,CAAC;AAC1C,eAAO,MAAM,kBAAkB,IAAU,CAAC;AAC1C,eAAO,MAAM,gBAAgB,IAAY,CAAC;AAC1C,eAAO,MAAM,eAAe,IAAa,CAAC;AAC1C,eAAO,MAAM,cAAc,KAAc,CAAC;AAC1C,eAAO,MAAM,eA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