eligius 1.0.3 → 1.0.4
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/README.md +3 -1
- package/dist/build/generate-importer-source-code.d.ts +15 -0
- package/dist/build/index.d.ts +1 -0
- package/dist/diagnostics/devtool-event-lister.d.ts +7 -0
- package/dist/diagnostics/diagnostics.d.ts +4 -0
- package/dist/diagnostics/index.d.ts +3 -0
- package/dist/diagnostics/types.d.ts +8 -0
- package/dist/eligius.cjs.development.js +450 -47
- package/dist/eligius.cjs.development.js.map +1 -1
- package/dist/eligius.cjs.production.min.js +1 -1
- package/dist/eligius.cjs.production.min.js.map +1 -1
- package/dist/eligius.esm.js +442 -47
- package/dist/eligius.esm.js.map +1 -1
- package/dist/engine-factory.d.ts +1 -0
- package/dist/importer/{webpack-resource-importer.d.ts → eligius-resource-importer.d.ts} +1 -1
- package/dist/importer/index.d.ts +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/operation/broadcast-event.d.ts +0 -1
- package/dist/operation/calc.d.ts +14 -0
- package/dist/operation/index.d.ts +2 -0
- package/dist/operation/math.d.ts +12 -0
- package/dist/operation/metadata/calc.d.ts +4 -0
- package/dist/operation/metadata/index.d.ts +2 -0
- package/dist/operation/metadata/math.d.ts +4 -0
- package/dist/operation/metadata/types.d.ts +9 -6
- package/dist/schema-tools/generate-operation-schemas.d.ts +1 -0
- package/dist/schema-tools/html-tag-names.d.ts +1 -0
- package/dist/types.d.ts +1 -1
- package/dist/util/camel-case-to-dash.d.ts +1 -0
- package/dist/util/dash-to-camel-case.d.ts +1 -0
- package/package.json +8 -6
package/dist/engine-factory.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare class EngineFactory implements IEngineFactory {
|
|
|
7
7
|
private importer;
|
|
8
8
|
private eventbus;
|
|
9
9
|
constructor(importer: ISimpleResourceImporter, windowRef: any, eventbus?: IEventbus);
|
|
10
|
+
private _initializeDevtools;
|
|
10
11
|
destroy(): void;
|
|
11
12
|
private _resizeHandler;
|
|
12
13
|
private _importSystemEntryWithEventbusDependency;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IResourceImporter } from '../types';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class EligiusResourceImporter implements IResourceImporter {
|
|
3
3
|
engines: Map<any, any>;
|
|
4
4
|
constructor();
|
|
5
5
|
getOperationNames(): string[];
|
package/dist/importer/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { EligiusResourceImporter } from './eligius-resource-importer';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
export * from './action';
|
|
2
2
|
export * from './action/types';
|
|
3
|
+
export * from './build';
|
|
3
4
|
export { ConfigurationResolver } from './configuration/configuration-resolver';
|
|
4
5
|
export * from './configuration/types';
|
|
5
6
|
export * from './controllers';
|
|
6
7
|
export * from './controllers/types';
|
|
8
|
+
export * from './diagnostics';
|
|
7
9
|
export { EligiusEngine } from './eligius-engine';
|
|
8
10
|
export { EngineFactory } from './engine-factory';
|
|
9
11
|
export * from './eventbus';
|
|
10
12
|
export * from './eventbus/types';
|
|
11
|
-
export {
|
|
13
|
+
export { EligiusResourceImporter } from './importer';
|
|
12
14
|
export { LanguageManager } from './language-manager';
|
|
13
15
|
export * from './operation';
|
|
14
16
|
export * as metadata from './operation/metadata';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TOperation } from './types';
|
|
2
|
+
export declare type TCalculationOperator = '+' | '-' | '*' | '/' | '%' | '**';
|
|
3
|
+
export interface ICalcOperationData {
|
|
4
|
+
left: string | number;
|
|
5
|
+
right: string | number;
|
|
6
|
+
operator: TCalculationOperator;
|
|
7
|
+
propertyName?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* This operation calculates the given left and right hand sides using the specified operator.
|
|
11
|
+
*
|
|
12
|
+
* @param operationData
|
|
13
|
+
*/
|
|
14
|
+
export declare const calc: TOperation<ICalcOperationData>;
|
|
@@ -3,6 +3,7 @@ export { addControllerToElement } from './add-controller-to-element';
|
|
|
3
3
|
export { animate } from './animate';
|
|
4
4
|
export { animateWithClass } from './animate-with-class';
|
|
5
5
|
export { broadcastEvent } from './broadcast-event';
|
|
6
|
+
export { calc } from './calc';
|
|
6
7
|
export { clearElement } from './clear-element';
|
|
7
8
|
export { clearOperationData } from './clear-operation-data';
|
|
8
9
|
export { createElement } from './create-element';
|
|
@@ -16,6 +17,7 @@ export { getElementDimensions } from './get-element-dimensions';
|
|
|
16
17
|
export { getImport } from './get-import';
|
|
17
18
|
export { loadJSON } from './load-json';
|
|
18
19
|
export { log } from './log';
|
|
20
|
+
export { math } from './math';
|
|
19
21
|
export { removeClass } from './remove-class';
|
|
20
22
|
export { removeControllerFromElement } from './remove-controller-from-element';
|
|
21
23
|
export { removeElement } from './remove-element';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TOperation } from './types';
|
|
2
|
+
export interface IMathOperationData {
|
|
3
|
+
args: (number | string | keyof Math)[];
|
|
4
|
+
functionName: keyof Math;
|
|
5
|
+
propertyName?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* This operation performs the given math function of the specified arguments.
|
|
9
|
+
*
|
|
10
|
+
* @param operationData
|
|
11
|
+
*/
|
|
12
|
+
export declare const math: TOperation<IMathOperationData>;
|
|
@@ -3,6 +3,7 @@ export { default as addControllerToElement } from './add-controller-to-element';
|
|
|
3
3
|
export { default as animate } from './animate';
|
|
4
4
|
export { default as animateWithClass } from './animate-with-class';
|
|
5
5
|
export { default as broadcastEvent } from './broadcast-event';
|
|
6
|
+
export { default as calc } from './calc';
|
|
6
7
|
export { default as clearElement } from './clear-element';
|
|
7
8
|
export { default as clearOperationData } from './clear-operation-data';
|
|
8
9
|
export { default as createElement } from './create-element';
|
|
@@ -16,6 +17,7 @@ export { default as getElementDimensions } from './get-element-dimensions';
|
|
|
16
17
|
export { default as getImport } from './get-import';
|
|
17
18
|
export { default as loadJSON } from './load-json';
|
|
18
19
|
export { default as log } from './log';
|
|
20
|
+
export { default as math } from './math';
|
|
19
21
|
export { default as removeClass } from './remove-class';
|
|
20
22
|
export { default as removeControllerFromElement } from './remove-controller-from-element';
|
|
21
23
|
export { default as removeElement } from './remove-element';
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
+
export declare type THasRequired = {
|
|
2
|
+
required?: boolean;
|
|
3
|
+
};
|
|
4
|
+
export declare type THasDescription = {
|
|
5
|
+
description?: string;
|
|
6
|
+
};
|
|
1
7
|
export declare type TComplexProperyMetadata = {
|
|
2
8
|
type: TParameterTypes;
|
|
3
9
|
defaultValue?: any;
|
|
4
|
-
|
|
5
|
-
};
|
|
10
|
+
} & THasRequired & THasDescription;
|
|
6
11
|
export declare type TArrayProperyMetadata = {
|
|
7
12
|
type: 'ParameterType:array';
|
|
8
13
|
itemType: TParameterTypes;
|
|
9
|
-
|
|
10
|
-
};
|
|
14
|
+
} & THasRequired & THasDescription;
|
|
11
15
|
export declare type TConstantParametersTypes = {
|
|
12
16
|
value: string;
|
|
13
|
-
description: string;
|
|
14
17
|
default?: boolean;
|
|
15
|
-
};
|
|
18
|
+
} & THasRequired & THasDescription;
|
|
16
19
|
export declare type TPropertyMetadata = TComplexProperyMetadata | TArrayProperyMetadata | TParameterTypes | TConstantParametersTypes[];
|
|
17
20
|
export declare type TPropertiesMetadata<T> = {
|
|
18
21
|
[P in keyof T]?: TPropertyMetadata;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const htmlTagNames: string[];
|
package/dist/types.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function camelCaseToDash(input: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function dashToCamelCase(input: string): string;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.
|
|
2
|
+
"version": "1.0.4",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/eligius.esm.js",
|
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
"lint": "dts lint",
|
|
20
20
|
"prepare": "dts build",
|
|
21
21
|
"size": "size-limit",
|
|
22
|
-
"
|
|
22
|
+
"generate-schema": "ts-node ./src/schema-tools/generate-operation-schemas",
|
|
23
|
+
"typedoc": "typedoc --options typedoc.json",
|
|
24
|
+
"docs": "yarn generate-schema && yarn typedoc && node copy-schema"
|
|
23
25
|
},
|
|
24
26
|
"prettier": {
|
|
25
27
|
"printWidth": 80,
|
|
@@ -47,17 +49,18 @@
|
|
|
47
49
|
"@types/jquery": "3.5.14",
|
|
48
50
|
"@types/jsdom": "^20.0.0",
|
|
49
51
|
"@types/mousetrap": "1.6.9",
|
|
50
|
-
"@types/node": "18.11.
|
|
52
|
+
"@types/node": "18.11.3",
|
|
51
53
|
"@types/sinon": "10.0.13",
|
|
52
54
|
"@types/uuid": "8.3.4",
|
|
53
55
|
"acorn": "8.8.0",
|
|
54
56
|
"ajv": "8.11.0",
|
|
55
57
|
"astring": "1.8.3",
|
|
56
58
|
"babel-jest": "29.2.1",
|
|
57
|
-
"canvas": "2.
|
|
59
|
+
"canvas": "2.10.1",
|
|
58
60
|
"chai": "4.3.6",
|
|
59
61
|
"cross-env": "7.0.3",
|
|
60
62
|
"dts-cli": "1.6.0",
|
|
63
|
+
"fs-extra": "10.1.0",
|
|
61
64
|
"husky": "8.0.1",
|
|
62
65
|
"jquery": "3.6.1",
|
|
63
66
|
"jsdom": "20.0.1",
|
|
@@ -66,14 +69,13 @@
|
|
|
66
69
|
"mediaelement": "5.1.0",
|
|
67
70
|
"sinon": "14.0.1",
|
|
68
71
|
"size-limit": "8.1.0",
|
|
69
|
-
"ts-morph": "16.0.0",
|
|
70
72
|
"ts-node": "10.9.1",
|
|
71
73
|
"tsconfig-paths": "^4.1.0",
|
|
72
74
|
"tslib": "2.4.0",
|
|
73
75
|
"typedoc": "0.23.17",
|
|
74
76
|
"typedoc-plugin-missing-exports": "1.0.0",
|
|
75
77
|
"typescript": "4.8.4",
|
|
76
|
-
"uvu": "
|
|
78
|
+
"uvu": "0.5.6"
|
|
77
79
|
},
|
|
78
80
|
"peerDependencies": {
|
|
79
81
|
"jquery": "3.6.0",
|