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