@keymanapp/common-types 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.
- package/build/src/consts/virtual-key-constants.d.ts +192 -194
- package/build/src/consts/virtual-key-constants.d.ts.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.d.ts +6 -8
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.d.ts.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.d.ts +29 -31
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.d.ts.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.d.ts +96 -98
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.d.ts.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.js +29 -5
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.js.map +1 -1
- package/build/src/kmx/element-string.d.ts +24 -26
- package/build/src/kmx/element-string.d.ts.map +1 -1
- package/build/src/kmx/keyman-targets.d.ts +21 -23
- package/build/src/kmx/keyman-targets.d.ts.map +1 -1
- package/build/src/kmx/kmx-builder.d.ts +33 -35
- package/build/src/kmx/kmx-builder.d.ts.map +1 -1
- package/build/src/kmx/kmx-file-reader.d.ts +14 -16
- package/build/src/kmx/kmx-file-reader.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-disp.d.ts +19 -21
- package/build/src/kmx/kmx-plus-builder/build-disp.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-elem.d.ts +29 -31
- package/build/src/kmx/kmx-plus-builder/build-elem.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-keys.d.ts +57 -59
- package/build/src/kmx/kmx-plus-builder/build-keys.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-layr.d.ts +54 -56
- package/build/src/kmx/kmx-plus-builder/build-layr.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-list.d.ts +36 -38
- package/build/src/kmx/kmx-plus-builder/build-list.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-loca.d.ts +12 -14
- package/build/src/kmx/kmx-plus-builder/build-loca.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-meta.d.ts +17 -19
- package/build/src/kmx/kmx-plus-builder/build-meta.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-sect.d.ts +16 -18
- package/build/src/kmx/kmx-plus-builder/build-sect.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-strs.d.ts +23 -25
- package/build/src/kmx/kmx-plus-builder/build-strs.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-tran.d.ts +33 -35
- package/build/src/kmx/kmx-plus-builder/build-tran.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-uset.d.ts +31 -33
- package/build/src/kmx/kmx-plus-builder/build-uset.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-vars.d.ts +22 -24
- package/build/src/kmx/kmx-plus-builder/build-vars.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/builder-section.d.ts +10 -12
- package/build/src/kmx/kmx-plus-builder/builder-section.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.d.ts +43 -45
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus.d.ts +320 -322
- package/build/src/kmx/kmx-plus.d.ts.map +1 -1
- package/build/src/kmx/kmx.d.ts +234 -236
- package/build/src/kmx/kmx.d.ts.map +1 -1
- package/build/src/kmx/string-list.d.ts +36 -38
- package/build/src/kmx/string-list.d.ts.map +1 -1
- package/build/src/kpj/keyman-developer-project.d.ts +79 -81
- package/build/src/kpj/keyman-developer-project.d.ts.map +1 -1
- package/build/src/kpj/kpj-file-reader.d.ts +19 -21
- package/build/src/kpj/kpj-file-reader.d.ts.map +1 -1
- package/build/src/kpj/kpj-file.d.ts +40 -42
- package/build/src/kpj/kpj-file.d.ts.map +1 -1
- package/build/src/kvk/kvk-file-reader.d.ts +5 -7
- package/build/src/kvk/kvk-file-reader.d.ts.map +1 -1
- package/build/src/kvk/kvk-file-writer.d.ts +20 -22
- package/build/src/kvk/kvk-file-writer.d.ts.map +1 -1
- package/build/src/kvk/kvk-file.d.ts +67 -69
- package/build/src/kvk/kvk-file.d.ts.map +1 -1
- package/build/src/kvk/kvk-file.js +26 -2
- package/build/src/kvk/kvk-file.js.map +1 -1
- package/build/src/kvk/kvks-file-reader.d.ts +24 -26
- package/build/src/kvk/kvks-file-reader.d.ts.map +1 -1
- package/build/src/kvk/kvks-file-writer.d.ts +7 -9
- package/build/src/kvk/kvks-file-writer.d.ts.map +1 -1
- package/build/src/kvk/kvks-file.d.ts +44 -46
- package/build/src/kvk/kvks-file.d.ts.map +1 -1
- package/build/src/kvk/visual-keyboard.d.ts +45 -47
- package/build/src/kvk/visual-keyboard.d.ts.map +1 -1
- package/build/src/kvk/visual-keyboard.js +5 -2
- package/build/src/kvk/visual-keyboard.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.d.ts +61 -63
- package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.d.ts.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.d.ts +96 -98
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.d.ts.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml.d.ts +171 -173
- package/build/src/ldml-keyboard/ldml-keyboard-xml.d.ts.map +1 -1
- package/build/src/ldml-keyboard/pattern-parser.d.ts +196 -198
- package/build/src/ldml-keyboard/pattern-parser.d.ts.map +1 -1
- package/build/src/ldml-keyboard/unicodeset-parser-api.d.ts +38 -40
- package/build/src/ldml-keyboard/unicodeset-parser-api.d.ts.map +1 -1
- package/build/src/main.d.ts +35 -37
- package/build/src/main.d.ts.map +1 -1
- package/build/src/osk/osk.d.ts +23 -25
- package/build/src/osk/osk.d.ts.map +1 -1
- package/build/src/package/kmp-json-file.d.ts +116 -118
- package/build/src/package/kmp-json-file.d.ts.map +1 -1
- package/build/src/package/kps-file.d.ts +176 -178
- package/build/src/package/kps-file.d.ts.map +1 -1
- package/build/src/schema-validators.d.ts +14 -16
- package/build/src/schema-validators.d.ts.map +1 -1
- package/build/src/schemas/displaymap.schema.d.ts +58 -60
- package/build/src/schemas/displaymap.schema.d.ts.map +1 -1
- package/build/src/schemas/keyboard_info.schema.d.ts +210 -212
- package/build/src/schemas/keyboard_info.schema.d.ts.map +1 -1
- package/build/src/schemas/keyman-touch-layout.clean.spec.d.ts +228 -230
- package/build/src/schemas/keyman-touch-layout.clean.spec.d.ts.map +1 -1
- package/build/src/schemas/keyman-touch-layout.spec.d.ts +230 -232
- package/build/src/schemas/keyman-touch-layout.spec.d.ts.map +1 -1
- package/build/src/schemas/kmp.schema.d.ts +325 -327
- package/build/src/schemas/kmp.schema.d.ts.map +1 -1
- package/build/src/schemas/kpj-9.0.schema.d.ts +153 -155
- package/build/src/schemas/kpj-9.0.schema.d.ts.map +1 -1
- package/build/src/schemas/kpj.schema.d.ts +123 -125
- package/build/src/schemas/kpj.schema.d.ts.map +1 -1
- package/build/src/schemas/kvks.schema.d.ts +161 -163
- package/build/src/schemas/kvks.schema.d.ts.map +1 -1
- package/build/src/schemas/ldml-keyboard3.schema.d.ts +633 -635
- package/build/src/schemas/ldml-keyboard3.schema.d.ts.map +1 -1
- package/build/src/schemas/ldml-keyboardtest3.schema.d.ts +190 -192
- package/build/src/schemas/ldml-keyboardtest3.schema.d.ts.map +1 -1
- package/build/src/schemas.d.ts +2295 -2297
- package/build/src/schemas.d.ts.map +1 -1
- package/build/src/util/common-events.d.ts +45 -47
- package/build/src/util/common-events.d.ts.map +1 -1
- package/build/src/util/compiler-interfaces.d.ts +367 -369
- package/build/src/util/compiler-interfaces.d.ts.map +1 -1
- package/build/src/util/errors.d.ts +6 -8
- package/build/src/util/errors.d.ts.map +1 -1
- package/build/src/util/file-types.d.ts +94 -96
- package/build/src/util/file-types.d.ts.map +1 -1
- package/build/src/util/file-types.js +30 -2
- package/build/src/util/file-types.js.map +1 -1
- package/build/src/util/util.d.ts +67 -69
- package/build/src/util/util.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"compiler-interfaces.d.ts","sourceRoot":"","sources":["../../../src/util/compiler-interfaces.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB;AAED,oBAAY,qBAAqB;IAC/B,IAAI,IAAoB;IACxB,IAAI,UAAoB;IACxB,IAAI,UAAoB;IACxB,KAAK,UAAmB;IACxB,KAAK,UAAmB;CACzB;AAED,eAAO,MAAM,2BAA2B,yBAMvC,CAAA;AAED;;GAEG;AACH,oBAAY,iBAAiB;IAC3B,QAAQ,WAAc;IACtB,KAAK,UAAiB;IACtB,SAAS,UAAa;IACtB,SAAS,OAAa;IACtB,QAAQ,aAAc;CACvB;AAUD,qBAAa,aAAa;IACxB,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,qBAAqB;IAGpD,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAGlC,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAGtC,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,sBAAsB;IAGtD,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAG3C,sEAAsE;IACtE,MAAM,CAAC,WAAW,CAAC,MAAM,EAA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BAAwB,+BAG3B,CAAC;AAEX,KAAK,sBAAsB,GAAG,OAAO,wBAAwB,CAAC;AAC9D,MAAM,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//# debugId=26408600-85df-53c9-bf41-b5211c1f5c58
|
|
8
|
-
//# sourceMappingURL=errors.d.ts.map
|
|
1
|
+
/**
|
|
2
|
+
* Base class for all common/web/types errors thrown
|
|
3
|
+
*/
|
|
4
|
+
export declare class KeymanTypesError extends Error {
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/util/errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;CAE1C"}
|
|
@@ -1,96 +1,94 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
*
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export declare const
|
|
38
|
-
export
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* @
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* @
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* @
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* @
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* @param
|
|
82
|
-
* @
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
*
|
|
88
|
-
* filename
|
|
89
|
-
* @param
|
|
90
|
-
* @param
|
|
91
|
-
* @
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
//# debugId=26aa7546-0896-5525-b078-0a9c43dfee9b
|
|
96
|
-
//# sourceMappingURL=file-types.d.ts.map
|
|
1
|
+
/**
|
|
2
|
+
* Registered source file types for Keyman. Some of these file types (e.g. .xml)
|
|
3
|
+
* may have multiple uses outside Keyman.
|
|
4
|
+
*/
|
|
5
|
+
export declare const enum Source {
|
|
6
|
+
Model = ".model.ts",
|
|
7
|
+
Project = ".kpj",
|
|
8
|
+
KeymanKeyboard = ".kmn",
|
|
9
|
+
LdmlKeyboard = ".xml",
|
|
10
|
+
Package = ".kps",
|
|
11
|
+
VisualKeyboard = ".kvks",
|
|
12
|
+
TouchLayout = ".keyman-touch-layout"
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* List of all registered source file types for Keyman. Some of these file types
|
|
16
|
+
* (e.g. .xml) may have multiple uses outside Keyman.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ALL_SOURCE: ReadonlyArray<Source>;
|
|
19
|
+
/**
|
|
20
|
+
* Registered binary file types for Keyman. Some of these file types (e.g. .js)
|
|
21
|
+
* may have multiple uses outside Keyman.
|
|
22
|
+
*/
|
|
23
|
+
export declare const enum Binary {
|
|
24
|
+
Model = ".model.js",
|
|
25
|
+
WebKeyboard = ".js",
|
|
26
|
+
Keyboard = ".kmx",
|
|
27
|
+
Package = ".kmp",
|
|
28
|
+
VisualKeyboard = ".kvk",
|
|
29
|
+
KeyboardInfo = ".keyboard_info",
|
|
30
|
+
ModelInfo = ".model_info"
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* List of all registered binary file types for Keyman. Some of these file types
|
|
34
|
+
* (e.g. .js) may have multiple uses outside Keyman.
|
|
35
|
+
*/
|
|
36
|
+
export declare const ALL_BINARY: ReadonlyArray<Binary>;
|
|
37
|
+
export declare const ALL: readonly (Binary | Source)[];
|
|
38
|
+
export type All = Source | Binary;
|
|
39
|
+
/**
|
|
40
|
+
* Alias for '.*', any file extension, not just Keyman ones.
|
|
41
|
+
*/
|
|
42
|
+
export type Any = string;
|
|
43
|
+
/**
|
|
44
|
+
* Gets the file type based on extension, dealing with multi-part file
|
|
45
|
+
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
46
|
+
* transform upper-cased file extensions to lower-case.
|
|
47
|
+
* @param filename
|
|
48
|
+
* @returns file extension, or `""` if no extension. Note that this return value
|
|
49
|
+
* differs from the other, more-specific fromFilename functions below,
|
|
50
|
+
* which return `null` if a supported extension is not found.
|
|
51
|
+
*/
|
|
52
|
+
export declare function fromFilename(filename: string): Binary | Source | Any;
|
|
53
|
+
/**
|
|
54
|
+
* Gets the file type based on extension, dealing with multi-part file
|
|
55
|
+
* extensions. Does not sniff contents of file or assume file existence.
|
|
56
|
+
* Does transform upper-cased file extensions to lower-case.
|
|
57
|
+
* @param filename
|
|
58
|
+
* @returns file type, or `null` if not found
|
|
59
|
+
*/
|
|
60
|
+
export declare function sourceOrBinaryTypeFromFilename(filename: string): Binary | Source;
|
|
61
|
+
/**
|
|
62
|
+
* Gets the source file type based on extension, dealing with multi-part file
|
|
63
|
+
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
64
|
+
* transform upper-cased file extensions to lower-case.
|
|
65
|
+
* @param filename
|
|
66
|
+
* @returns file type, or `null` if not found
|
|
67
|
+
*/
|
|
68
|
+
export declare function sourceTypeFromFilename(filename: string): Source;
|
|
69
|
+
/**
|
|
70
|
+
* Gets the binary file type based on extension, dealing with multi-part file
|
|
71
|
+
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
72
|
+
* transform upper-cased file extensions to lower-case.
|
|
73
|
+
* @param filename
|
|
74
|
+
* @returns file type, or `null` if not found
|
|
75
|
+
*/
|
|
76
|
+
export declare function binaryTypeFromFilename(filename: string): Binary;
|
|
77
|
+
/**
|
|
78
|
+
* Returns true if filenmae has a specific file extension. Does transform
|
|
79
|
+
* upper-cased file extensions to lower-case.
|
|
80
|
+
* @param filename
|
|
81
|
+
* @param fileType
|
|
82
|
+
* @returns true if file is of type fileType
|
|
83
|
+
*/
|
|
84
|
+
export declare function filenameIs(filename: string, fileType: Source | Binary): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Replaces a filename extension with the new extension. Returns `null` if the
|
|
87
|
+
* filename does not end with oldExtension.
|
|
88
|
+
* @param filename
|
|
89
|
+
* @param oldExtension
|
|
90
|
+
* @param newExtension
|
|
91
|
+
* @returns
|
|
92
|
+
*/
|
|
93
|
+
export declare function replaceExtension(filename: string, oldExtension: string, newExtension: string): string;
|
|
94
|
+
//# sourceMappingURL=file-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"file-types.d.ts","sourceRoot":"","sources":["../../../src/util/file-types.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,0BAAkB,MAAM;IACtB,KAAK,cAAc;IACnB,OAAO,SAAS;IAChB,cAAc,SAAS;IACvB,YAA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global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
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]="34e33d38-5941-5a85-801c-62ed25c0186d")}catch(e){}}();
|
|
2
|
+
/**
|
|
3
|
+
* Registered source file types for Keyman. Some of these file types (e.g. .xml)
|
|
4
|
+
* may have multiple uses outside Keyman.
|
|
5
|
+
*/
|
|
6
|
+
export var Source;
|
|
7
|
+
(function (Source) {
|
|
8
|
+
Source["Model"] = ".model.ts";
|
|
9
|
+
Source["Project"] = ".kpj";
|
|
10
|
+
Source["KeymanKeyboard"] = ".kmn";
|
|
11
|
+
Source["LdmlKeyboard"] = ".xml";
|
|
12
|
+
Source["Package"] = ".kps";
|
|
13
|
+
Source["VisualKeyboard"] = ".kvks";
|
|
14
|
+
Source["TouchLayout"] = ".keyman-touch-layout";
|
|
15
|
+
})(Source || (Source = {}));
|
|
2
16
|
;
|
|
3
17
|
/**
|
|
4
18
|
* List of all registered source file types for Keyman. Some of these file types
|
|
@@ -13,6 +27,20 @@ export const ALL_SOURCE = [
|
|
|
13
27
|
".kvks" /* Source.VisualKeyboard */,
|
|
14
28
|
".keyman-touch-layout" /* Source.TouchLayout */
|
|
15
29
|
];
|
|
30
|
+
/**
|
|
31
|
+
* Registered binary file types for Keyman. Some of these file types (e.g. .js)
|
|
32
|
+
* may have multiple uses outside Keyman.
|
|
33
|
+
*/
|
|
34
|
+
export var Binary;
|
|
35
|
+
(function (Binary) {
|
|
36
|
+
Binary["Model"] = ".model.js";
|
|
37
|
+
Binary["WebKeyboard"] = ".js";
|
|
38
|
+
Binary["Keyboard"] = ".kmx";
|
|
39
|
+
Binary["Package"] = ".kmp";
|
|
40
|
+
Binary["VisualKeyboard"] = ".kvk";
|
|
41
|
+
Binary["KeyboardInfo"] = ".keyboard_info";
|
|
42
|
+
Binary["ModelInfo"] = ".model_info";
|
|
43
|
+
})(Binary || (Binary = {}));
|
|
16
44
|
/**
|
|
17
45
|
* List of all registered binary file types for Keyman. Some of these file types
|
|
18
46
|
* (e.g. .js) may have multiple uses outside Keyman.
|
|
@@ -111,5 +139,5 @@ export function replaceExtension(filename, oldExtension, newExtension) {
|
|
|
111
139
|
}
|
|
112
140
|
return filename.substring(0, filename.length - oldExtension.length) + newExtension;
|
|
113
141
|
}
|
|
114
|
-
//# debugId=
|
|
142
|
+
//# debugId=34e33d38-5941-5a85-801c-62ed25c0186d
|
|
115
143
|
//# sourceMappingURL=file-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"debug_id":"
|
|
1
|
+
{"debug_id":"34e33d38-5941-5a85-801c-62ed25c0186d","file":"file-types.js","mappings":";AACA;;;GAGG;AACH,MAAM,CAAN,IAAkB,MAQjB;AARD,WAAkB,MAAM;IACtB,6BAAmB,CAAA;IACnB,0BAAgB,CAAA;IAChB,iCAAuB,CAAA;IACvB,+BAAqB,CAAA;IACrB,0BAAgB,CAAA;IAChB,kCAAwB,CAAA;IACxB,8CAAoC,CAAA;AACtC,CAAC,EARiB,MAAM,KAAN,MAAM,QAQvB;AAAA,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAA0B;;;;;;;;CAQvC,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAN,IAAkB,MAQjB;AARD,WAAkB,MAAM;IACtB,6BAAmB,CAAA;IACnB,6BAAmB,CAAA;IACnB,2BAAiB,CAAA;IACjB,0BAAgB,CAAA;IAChB,iCAAuB,CAAA;IACvB,yCAA+B,CAAA;IAC/B,mCAAyB,CAAA;AAC3B,CAAC,EARiB,MAAM,KAAN,MAAM,QAQvB;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAA0B;;;;;;;;CAStC,CAAC;AAEZ,MAAM,CAAC,MAAM,GAAG,GAAG,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AU,UAAU,CAAC,QAAgB,EAAE,QAAyB;IACpE,6BAA6B;IAC7B,IAAG,QAAQ,kCAAsB,IAAI,UAAU,CAAC,QAAQ,iCAAe,EAAE;QACvE,OAAO,KAAK,CAAC;KACd;IACD,OAAO,QAAQ,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACnD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAAgB,EAAE,YAAoB,EAAE,YAAoB;IAC3F,MAAM,GAAG,GAAG,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;IACtE,IAAG,GAAG,KAAK,YAAY,EAAE;QACvB,OAAO,IAAI,CAAC;KACb;IACD,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC;AACrF,CAAC","names":[],"sourceRoot":"","sources":["../../../src/util/file-types.ts"],"version":3}
|
package/build/src/util/util.d.ts
CHANGED
|
@@ -1,69 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* @param
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
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
|
-
export declare function
|
|
48
|
-
export declare function
|
|
49
|
-
export declare
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export declare function
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
//# debugId=1c2c3647-78c3-5491-b862-4994b072e086
|
|
69
|
-
//# sourceMappingURL=util.d.ts.map
|
|
1
|
+
/**
|
|
2
|
+
* xml2js will not place single-entry objects into arrays. Easiest way to fix
|
|
3
|
+
* this is to box them ourselves as needed. Ensures that o.x is an array.
|
|
4
|
+
*
|
|
5
|
+
* @param o Object with property to box
|
|
6
|
+
* @param x Name of element to box
|
|
7
|
+
*/
|
|
8
|
+
export declare function boxXmlArray(o: any, x: string): void;
|
|
9
|
+
export declare const MATCH_HEX_ESCAPE: RegExp;
|
|
10
|
+
/** regex for single quad escape such as \u0127 or \U00000000 */
|
|
11
|
+
export declare const CONTAINS_QUAD_ESCAPE: RegExp;
|
|
12
|
+
/** regex for single quad escape such as \u0127 */
|
|
13
|
+
export declare const MATCH_QUAD_ESCAPE: RegExp;
|
|
14
|
+
export declare class UnescapeError extends Error {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Unescape one single quad string such as \u0127 / \U00000000
|
|
18
|
+
* Throws exception if the string doesn't match MATCH_QUAD_ESCAPE
|
|
19
|
+
* Note this does not attempt to handle or reject surrogates.
|
|
20
|
+
* So, `\\uD838\\uDD09` will work but other combinations may not.
|
|
21
|
+
* @param s input string
|
|
22
|
+
* @returns output
|
|
23
|
+
*/
|
|
24
|
+
export declare function unescapeOneQuadString(s: string): string;
|
|
25
|
+
/** unscape multiple occurences of \u0127 style strings */
|
|
26
|
+
export declare function unescapeQuadString(s: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* Unescapes a string according to UTS#18§1.1, see <https://www.unicode.org/reports/tr18/#Hex_notation>
|
|
29
|
+
* @param s escaped string
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
export declare function unescapeString(s: string): string;
|
|
33
|
+
/** 0000 … FFFF */
|
|
34
|
+
export declare function hexQuad(n: number): string;
|
|
35
|
+
/** 00000000 … FFFFFFFF */
|
|
36
|
+
export declare function hexOcts(n: number): string;
|
|
37
|
+
/** escape one char for regex in \uXXXX form */
|
|
38
|
+
export declare function escapeRegexChar(ch: string): string;
|
|
39
|
+
/**
|
|
40
|
+
* Unescapes a string according to UTS#18§1.1, see <https://www.unicode.org/reports/tr18/#Hex_notation>
|
|
41
|
+
* @param s escaped string
|
|
42
|
+
* @returns
|
|
43
|
+
*/
|
|
44
|
+
export declare function unescapeStringToRegex(s: string): string;
|
|
45
|
+
/** True if this string *could* be a UTF-32 single char */
|
|
46
|
+
export declare function isOneChar(value: string): boolean;
|
|
47
|
+
export declare function toOneChar(value: string): number;
|
|
48
|
+
export declare function describeCodepoint(ch: number): string;
|
|
49
|
+
export declare enum BadStringType {
|
|
50
|
+
pua = "PUA",
|
|
51
|
+
unassigned = "Unassigned",
|
|
52
|
+
illegal = "Illegal"
|
|
53
|
+
}
|
|
54
|
+
export declare function isValidUnicode(start: number, end?: number): boolean;
|
|
55
|
+
export declare function isPUA(ch: number): boolean;
|
|
56
|
+
declare class BadStringMap extends Map<BadStringType, Set<number>> {
|
|
57
|
+
toString(): string;
|
|
58
|
+
}
|
|
59
|
+
export declare class BadStringAnalyzer {
|
|
60
|
+
/** add a string for analysis */
|
|
61
|
+
add(s: string): void;
|
|
62
|
+
private addProblem;
|
|
63
|
+
analyze(): BadStringMap;
|
|
64
|
+
private m;
|
|
65
|
+
}
|
|
66
|
+
export {};
|
|
67
|
+
//# sourceMappingURL=util.d.ts.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pB;AA+DD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,WAsBzD;AAED,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,WAI/B;AAED,cAAM,YAAa,SAAQ,GAAG,CAAC,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACjD,QAAQ,IAAK,MAAM;CAM3B;AAWD,qBAAa,iBAAiB;IAC5B,gCAAgC;IACzB,GAAG,CAAC,CAAC,EAAG,MAAM;IAUrB,OAAO,CAAC,UAAU;IAOX,OAAO,IAAK,YAAY;IAQ/B,OAAO,CAAC,CAAC,CAAsB;CAChC"}
|
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"url": "https://github.com/keymanapp/keyman/issues"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@keymanapp/keyman-version": "17.0.
|
|
32
|
+
"@keymanapp/keyman-version": "17.0.258-alpha",
|
|
33
33
|
"restructure": "git+https://github.com/keymanapp/dependency-restructure.git#7a188a1e26f8f36a175d95b67ffece8702363dfc",
|
|
34
34
|
"semver": "^7.5.2",
|
|
35
35
|
"xml2js": "git+https://github.com/keymanapp/dependency-node-xml2js#535fe732dc408d697e0f847c944cc45f0baf0829"
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
86
|
"sideEffects": false,
|
|
87
|
-
"version": "17.0.
|
|
87
|
+
"version": "17.0.258-alpha"
|
|
88
88
|
}
|