@keymanapp/kmc-model-info 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/index.d.ts +3 -5
- package/build/src/index.d.ts.map +1 -1
- package/build/src/min-keyman-version.d.ts +2 -4
- package/build/src/min-keyman-version.d.ts.map +1 -1
- package/build/src/model-info-compiler-messages.d.ts +41 -43
- package/build/src/model-info-compiler-messages.d.ts.map +1 -1
- package/build/src/model-info-compiler.d.ts +51 -53
- package/build/src/model-info-compiler.d.ts.map +1 -1
- package/build/src/model-info-file.d.ts +28 -30
- package/build/src/model-info-file.d.ts.map +1 -1
- package/package.json +4 -4
package/build/src/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
//# debugId=e5e44fcb-63e7-5947-af37-2728de36e311
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { ModelInfoSources, ModelInfoCompilerOptions, ModelInfoCompilerArtifacts, ModelInfoCompilerResult, ModelInfoCompiler } from './model-info-compiler.js';
|
|
2
|
+
export { ModelInfoCompilerMessages } from './model-info-compiler-messages.js';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
package/build/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC9J,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//# debugId=91f7d314-b12b-539a-9118-8b4409d2b415
|
|
4
|
-
//# sourceMappingURL=min-keyman-version.d.ts.map
|
|
1
|
+
export declare const minKeymanVersion = "12.0";
|
|
2
|
+
//# sourceMappingURL=min-keyman-version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"min-keyman-version.d.ts","sourceRoot":"","sources":["../../src/min-keyman-version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,SAAS,CAAC"}
|
|
@@ -1,43 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
static
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
static
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
static
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
static
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
static
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
static
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
static
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
static
|
|
39
|
-
static
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
//# debugId=9255e131-ba23-55a3-84c9-364395083bc6
|
|
43
|
-
//# sourceMappingURL=model-info-compiler-messages.d.ts.map
|
|
1
|
+
export declare class ModelInfoCompilerMessages {
|
|
2
|
+
static Fatal_UnexpectedException: (o: {
|
|
3
|
+
e: any;
|
|
4
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
5
|
+
static FATAL_UnexpectedException: number;
|
|
6
|
+
static Error_FileDoesNotExist: (o: {
|
|
7
|
+
filename: string;
|
|
8
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
9
|
+
static ERROR_FileDoesNotExist: number;
|
|
10
|
+
static Error_FileIsNotValid: (o: {
|
|
11
|
+
filename: string;
|
|
12
|
+
e: any;
|
|
13
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
14
|
+
static ERROR_FileIsNotValid: number;
|
|
15
|
+
static Warn_MetadataFieldInconsistent: (o: {
|
|
16
|
+
field: string;
|
|
17
|
+
value: any;
|
|
18
|
+
expected: any;
|
|
19
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
20
|
+
static WARN_MetadataFieldInconsistent: number;
|
|
21
|
+
static Error_InvalidAuthorEmail: (o: {
|
|
22
|
+
email: string;
|
|
23
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
24
|
+
static ERROR_InvalidAuthorEmail: number;
|
|
25
|
+
static Error_LicenseFileDoesNotExist: (o: {
|
|
26
|
+
filename: string;
|
|
27
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
28
|
+
static ERROR_LicenseFileIsMissing: number;
|
|
29
|
+
static Error_LicenseFileIsDamaged: (o: {
|
|
30
|
+
filename: string;
|
|
31
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
32
|
+
static ERROR_LicenseFileIsDamaged: number;
|
|
33
|
+
static Error_LicenseIsNotValid: (o: {
|
|
34
|
+
filename: string;
|
|
35
|
+
message: string;
|
|
36
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
37
|
+
static ERROR_LicenseIsNotValid: number;
|
|
38
|
+
static Error_NoLicenseFound: () => import("@keymanapp/common-types").CompilerEvent;
|
|
39
|
+
static ERROR_NoLicenseFound: number;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=model-info-compiler-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"model-info-compiler-messages.d.ts","sourceRoot":"","sources":["../../src/model-info-compiler-messages.ts"],"names":[],"mappings":"AASA,qBAAa,yBAAyB;IACpC,MAAM,CAAC,yBAAyB,MAAM;QAAC,CAAC,EAAE,GAAG,CAAA;KAAC,qDAAqE;IACn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
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
private
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
private
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
//# debugId=a791e825-11ea-5c5b-b6ce-2806514e04ed
|
|
53
|
-
//# sourceMappingURL=model-info-compiler.d.ts.map
|
|
1
|
+
/**
|
|
2
|
+
* Builds a source .model_info file with metadata extracted from .kps file and
|
|
3
|
+
* compiled files to produce a comprehensive .model_info file.
|
|
4
|
+
*/
|
|
5
|
+
import { CompilerCallbacks, CompilerOptions, KeymanCompiler, KeymanCompilerArtifact, KeymanCompilerArtifacts, KeymanCompilerResult, KmpJsonFile } from "@keymanapp/common-types";
|
|
6
|
+
export declare class ModelInfoSources {
|
|
7
|
+
/** The identifier for the model */
|
|
8
|
+
model_id: string;
|
|
9
|
+
/** The data from the .kps file, transformed to kmp.json */
|
|
10
|
+
kmpJsonData: KmpJsonFile.KmpJsonFile;
|
|
11
|
+
/** The path in the keymanapp/lexical-models repo where this model may be found */
|
|
12
|
+
sourcePath: string;
|
|
13
|
+
/** The compiled model filename and relative path (.js) */
|
|
14
|
+
modelFileName: string;
|
|
15
|
+
/** The compiled package filename and relative path (.kmp) */
|
|
16
|
+
kmpFileName: string;
|
|
17
|
+
/** The source package filename and relative path (.kps) */
|
|
18
|
+
kpsFilename: string;
|
|
19
|
+
/** Last modification date for files in the project folder 'YYYY-MM-DDThh:mm:ssZ' */
|
|
20
|
+
lastCommitDate?: string;
|
|
21
|
+
/** Return an error if project does not meet requirements of lexical-models repository */
|
|
22
|
+
forPublishing: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface ModelInfoCompilerOptions extends CompilerOptions {
|
|
25
|
+
sources: ModelInfoSources;
|
|
26
|
+
}
|
|
27
|
+
export interface ModelInfoCompilerArtifacts extends KeymanCompilerArtifacts {
|
|
28
|
+
model_info: KeymanCompilerArtifact;
|
|
29
|
+
}
|
|
30
|
+
export interface ModelInfoCompilerResult extends KeymanCompilerResult {
|
|
31
|
+
artifacts: ModelInfoCompilerArtifacts;
|
|
32
|
+
}
|
|
33
|
+
export declare class ModelInfoCompiler implements KeymanCompiler {
|
|
34
|
+
private callbacks;
|
|
35
|
+
private options;
|
|
36
|
+
constructor();
|
|
37
|
+
init(callbacks: CompilerCallbacks, options: ModelInfoCompilerOptions): Promise<boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* Builds .model_info file with metadata from the model and package source file.
|
|
40
|
+
* This function is intended for use within the lexical-models repository. While many of the
|
|
41
|
+
* parameters could be deduced from each other, they are specified here to reduce the
|
|
42
|
+
* number of places the filenames are constructed.
|
|
43
|
+
*
|
|
44
|
+
* @param sources Details on files from which to extract additional metadata
|
|
45
|
+
*/
|
|
46
|
+
run(inputFilename: string, outputFilename?: string): Promise<ModelInfoCompilerResult>;
|
|
47
|
+
write(artifacts: ModelInfoCompilerArtifacts): Promise<boolean>;
|
|
48
|
+
private isLicenseMIT;
|
|
49
|
+
private loadJsFile;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=model-info-compiler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"model-info-compiler.d.ts","sourceRoot":"","sources":["../../src/model-info-compiler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,oBAAoB,EA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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
//# debugId=9a9a75dc-1fd5-58a3-8a40-fa557c6212c6
|
|
30
|
-
//# sourceMappingURL=model-info-file.d.ts.map
|
|
1
|
+
export interface ModelInfoFile {
|
|
2
|
+
id?: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
authorName?: string;
|
|
5
|
+
authorEmail?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
license?: "mit";
|
|
8
|
+
languages: Array<string>;
|
|
9
|
+
lastModifiedDate?: string;
|
|
10
|
+
packageFilename?: string;
|
|
11
|
+
packageFileSize?: number;
|
|
12
|
+
jsFilename?: string;
|
|
13
|
+
jsFileSize?: number;
|
|
14
|
+
isRTL?: boolean;
|
|
15
|
+
packageIncludes?: string[];
|
|
16
|
+
version?: string;
|
|
17
|
+
minKeymanVersion?: string;
|
|
18
|
+
helpLink?: string;
|
|
19
|
+
sourcePath?: string;
|
|
20
|
+
related?: {
|
|
21
|
+
[id: string]: ModelInfoFileRelated;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface ModelInfoFileRelated {
|
|
25
|
+
deprecates?: string;
|
|
26
|
+
deprecatedBy?: string;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=model-info-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"model-info-file.d.ts","sourceRoot":"","sources":["../../src/model-info-file.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE;QAAC,CAAC,EAAE,EAAC,MAAM,GAAE,oBAAoB,CAAA;KAAC,CAAC;CAC9C;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
package/package.json
CHANGED
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"url": "https://github.com/keymanapp/keyman/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@keymanapp/common-types": "17.0.
|
|
34
|
-
"@keymanapp/models-types": "17.0.
|
|
35
|
-
"@keymanapp/developer-utils": "17.0.
|
|
33
|
+
"@keymanapp/common-types": "17.0.258-alpha",
|
|
34
|
+
"@keymanapp/models-types": "17.0.258-alpha",
|
|
35
|
+
"@keymanapp/developer-utils": "17.0.258-alpha"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/chai": "^4.1.7",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"type": "git",
|
|
56
56
|
"url": "git+https://github.com/keymanapp/keyman.git"
|
|
57
57
|
},
|
|
58
|
-
"version": "17.0.
|
|
58
|
+
"version": "17.0.258-alpha"
|
|
59
59
|
}
|