eligius 1.0.2 → 1.0.3
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 +281 -4
- package/dist/configuration/types.d.ts +1 -1
- package/dist/eligius-engine.d.ts +27 -31
- package/dist/eligius.cjs.development.js +1217 -1126
- 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 +1182 -1092
- package/dist/eligius.esm.js.map +1 -1
- package/dist/eventbus/types.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/operation/get-controller-instance.d.ts +2 -0
- package/dist/operation/helper/get-element-data.d.ts +1 -0
- package/dist/operation/helper/modify-dimensions.d.ts +4 -1
- package/dist/operation/metadata/add-globals-to-operation.d.ts +2 -2
- package/dist/operation/metadata/types.d.ts +11 -3
- package/dist/operation/select-element.d.ts +2 -0
- package/dist/operation/wait.d.ts +3 -0
- package/dist/{test/unit/operation → util}/apply-operation.d.ts +1 -1
- package/package.json +89 -97
- package/CHANGELOG.md +0 -16
package/dist/eventbus/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface IEventbus {
|
|
|
4
4
|
clear(): void;
|
|
5
5
|
on(eventName: string, eventHandler: TEventHandler, eventTopic?: string): TEventHandlerRemover;
|
|
6
6
|
off(eventName: string, eventHandler: TEventHandler, eventTopic?: string): void;
|
|
7
|
-
once(eventName: string, eventHandler:
|
|
7
|
+
once(eventName: string, eventHandler: TEventHandler, eventTopic?: string): void;
|
|
8
8
|
broadcast(eventName: string, args?: any[]): void;
|
|
9
9
|
broadcastForTopic(eventName: string, eventTopic: string, args?: any[]): void;
|
|
10
10
|
registerEventlistener(eventbusListener: IEventbusListener): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './eventbus/types';
|
|
|
11
11
|
export { WebpackResourceImporter } from './importer';
|
|
12
12
|
export { LanguageManager } from './language-manager';
|
|
13
13
|
export * from './operation';
|
|
14
|
+
export * as metadata from './operation/metadata';
|
|
14
15
|
export * from './operation/types';
|
|
15
16
|
export { TimelineEventNames } from './timeline-event-names';
|
|
16
17
|
export * from './timelineproviders';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as controllers from '../controllers';
|
|
2
|
+
import { IController } from '../controllers/types';
|
|
2
3
|
import { TOperation } from './types';
|
|
3
4
|
declare type TSystemName = keyof typeof controllers;
|
|
4
5
|
export interface IGetControllerInstanceOperationData {
|
|
5
6
|
systemName: TSystemName;
|
|
6
7
|
propertyName?: string;
|
|
8
|
+
controllerInstance?: IController<unknown>;
|
|
7
9
|
}
|
|
8
10
|
/**
|
|
9
11
|
* This operation retrieves an instance of the given controller name.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="jquery" />
|
|
2
2
|
import { IController } from '../../controllers/types';
|
|
3
|
+
export declare const controllersDataName = "eligiusEngineControllers";
|
|
3
4
|
declare function getElementData(name: string, element: JQuery): IController<any>[];
|
|
4
5
|
declare const getElementControllers: (element: JQuery<HTMLElement>) => IController<any>[];
|
|
5
6
|
export { getElementData, getElementControllers };
|
|
@@ -14,4 +14,7 @@ import { IDimensions } from '../../types';
|
|
|
14
14
|
* @param dimensions
|
|
15
15
|
* @param modifier
|
|
16
16
|
*/
|
|
17
|
-
export declare function modifyDimensions(dimensions: IDimensions, modifier: string):
|
|
17
|
+
export declare function modifyDimensions(dimensions: IDimensions, modifier: string): {
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAddGlobalsToOperationData } from '../add-globals-to-operation';
|
|
2
2
|
import { IOperationMetadata } from './types';
|
|
3
|
-
declare function addGlobalsToOperation(): IOperationMetadata<
|
|
3
|
+
declare function addGlobalsToOperation(): IOperationMetadata<IAddGlobalsToOperationData>;
|
|
4
4
|
export default addGlobalsToOperation;
|
|
@@ -8,11 +8,19 @@ export declare type TArrayProperyMetadata = {
|
|
|
8
8
|
itemType: TParameterTypes;
|
|
9
9
|
required?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare type
|
|
11
|
+
export declare type TConstantParametersTypes = {
|
|
12
|
+
value: string;
|
|
13
|
+
description: string;
|
|
14
|
+
default?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare type TPropertyMetadata = TComplexProperyMetadata | TArrayProperyMetadata | TParameterTypes | TConstantParametersTypes[];
|
|
17
|
+
export declare type TPropertiesMetadata<T> = {
|
|
18
|
+
[P in keyof T]?: TPropertyMetadata;
|
|
19
|
+
};
|
|
12
20
|
export interface IOperationMetadata<T> {
|
|
13
21
|
description: string;
|
|
14
22
|
dependentProperties?: (keyof T)[];
|
|
15
|
-
properties?:
|
|
16
|
-
outputProperties?:
|
|
23
|
+
properties?: TPropertiesMetadata<T>;
|
|
24
|
+
outputProperties?: TPropertiesMetadata<T>;
|
|
17
25
|
}
|
|
18
26
|
export declare type TParameterTypes = 'ParameterType:htmlElementName' | 'ParameterType:className' | 'ParameterType:selector' | 'ParameterType:string' | 'ParameterType:integer' | 'ParameterType:object' | 'ParameterType:boolean' | 'ParameterType:array' | 'ParameterType:eventTopic' | 'ParameterType:eventName' | 'ParameterType:systemName' | 'ParameterType:actionName' | 'ParameterType:controllerName' | 'ParameterType:dimensions' | 'ParameterType:dimensionsModifier' | 'ParameterType:url' | 'ParameterType:htmlContent' | 'ParameterType:labelId' | 'ParameterType:ImagePath' | 'ParameterType:QuadrantPosition';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
/// <reference types="jquery" />
|
|
1
2
|
import { TOperation } from './types';
|
|
2
3
|
export interface ISelectElementOperationData {
|
|
3
4
|
selector: string;
|
|
4
5
|
propertyName?: string;
|
|
5
6
|
useSelectedElementAsRoot?: boolean;
|
|
7
|
+
selectedElement?: JQuery;
|
|
6
8
|
}
|
|
7
9
|
/**
|
|
8
10
|
* This operation selects one or more elements using the specified selector.
|
package/dist/operation/wait.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IOperationContext, TOperation } from '
|
|
1
|
+
import { IOperationContext, TOperation } from '../operation';
|
|
2
2
|
export declare const defaultContext: IOperationContext;
|
|
3
3
|
export declare function applyOperation<T = TOperation>(operation: TOperation<any>, operationData: any, context?: IOperationContext): T;
|
package/package.json
CHANGED
|
@@ -1,97 +1,89 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "1.0.
|
|
3
|
-
"license": "MIT",
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"module": "dist/eligius
|
|
6
|
-
"typings": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
|
-
"engines": {
|
|
11
|
-
"node": ">=10"
|
|
12
|
-
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"
|
|
15
|
-
"dev": "dts watch",
|
|
16
|
-
"build": "dts build",
|
|
17
|
-
"test": "
|
|
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
|
-
|
|
48
|
-
"@
|
|
49
|
-
"@types/
|
|
50
|
-
"@types/
|
|
51
|
-
"@types/
|
|
52
|
-
"@types/
|
|
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
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
"dependencies": {
|
|
92
|
-
"mousetrap": "1.6.5",
|
|
93
|
-
"ts-is-present": "1.2.2",
|
|
94
|
-
"uuid": "8.3.2"
|
|
95
|
-
},
|
|
96
|
-
"packageManager": "yarn@3.1.1"
|
|
97
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.3",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"module": "dist/eligius.esm.js",
|
|
6
|
+
"typings": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=10"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"typecheck": "tsc --noEmit",
|
|
15
|
+
"dev": "dts watch",
|
|
16
|
+
"build": "dts build",
|
|
17
|
+
"test": "cross-env TS_NODE_PROJECT=tsconfig.test.json uvu -r ts-node/register -r jsdom-global/register src/test",
|
|
18
|
+
"check": "tsc --pretty --noEmit",
|
|
19
|
+
"lint": "dts lint",
|
|
20
|
+
"prepare": "dts build",
|
|
21
|
+
"size": "size-limit",
|
|
22
|
+
"docs": "typedoc --options typedoc.json"
|
|
23
|
+
},
|
|
24
|
+
"prettier": {
|
|
25
|
+
"printWidth": 80,
|
|
26
|
+
"semi": true,
|
|
27
|
+
"singleQuote": true,
|
|
28
|
+
"trailingComma": "es5"
|
|
29
|
+
},
|
|
30
|
+
"name": "eligius",
|
|
31
|
+
"author": "rolandzwaga",
|
|
32
|
+
"size-limit": [
|
|
33
|
+
{
|
|
34
|
+
"path": "dist/eligius.cjs.production.min.js",
|
|
35
|
+
"limit": "150 KB"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"path": "dist/eligius.esm.js",
|
|
39
|
+
"limit": "150 KB"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@size-limit/preset-small-lib": "8.1.0",
|
|
44
|
+
"@types/chai": "4.3.3",
|
|
45
|
+
"@types/fs-extra": "9.0.13",
|
|
46
|
+
"@types/jasmine": "4.3.0",
|
|
47
|
+
"@types/jquery": "3.5.14",
|
|
48
|
+
"@types/jsdom": "^20.0.0",
|
|
49
|
+
"@types/mousetrap": "1.6.9",
|
|
50
|
+
"@types/node": "18.11.2",
|
|
51
|
+
"@types/sinon": "10.0.13",
|
|
52
|
+
"@types/uuid": "8.3.4",
|
|
53
|
+
"acorn": "8.8.0",
|
|
54
|
+
"ajv": "8.11.0",
|
|
55
|
+
"astring": "1.8.3",
|
|
56
|
+
"babel-jest": "29.2.1",
|
|
57
|
+
"canvas": "2.9.3",
|
|
58
|
+
"chai": "4.3.6",
|
|
59
|
+
"cross-env": "7.0.3",
|
|
60
|
+
"dts-cli": "1.6.0",
|
|
61
|
+
"husky": "8.0.1",
|
|
62
|
+
"jquery": "3.6.1",
|
|
63
|
+
"jsdom": "20.0.1",
|
|
64
|
+
"jsdom-global": "3.0.2",
|
|
65
|
+
"lottie-web": "5.9.6",
|
|
66
|
+
"mediaelement": "5.1.0",
|
|
67
|
+
"sinon": "14.0.1",
|
|
68
|
+
"size-limit": "8.1.0",
|
|
69
|
+
"ts-morph": "16.0.0",
|
|
70
|
+
"ts-node": "10.9.1",
|
|
71
|
+
"tsconfig-paths": "^4.1.0",
|
|
72
|
+
"tslib": "2.4.0",
|
|
73
|
+
"typedoc": "0.23.17",
|
|
74
|
+
"typedoc-plugin-missing-exports": "1.0.0",
|
|
75
|
+
"typescript": "4.8.4",
|
|
76
|
+
"uvu": "^0.5.6"
|
|
77
|
+
},
|
|
78
|
+
"peerDependencies": {
|
|
79
|
+
"jquery": "3.6.0",
|
|
80
|
+
"lottie-web": "5.8.1",
|
|
81
|
+
"mediaelement": "5.0.4"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"mousetrap": "1.6.5",
|
|
85
|
+
"ts-is-present": "1.2.2",
|
|
86
|
+
"uuid": "9.0.0"
|
|
87
|
+
},
|
|
88
|
+
"packageManager": "yarn@3.2.4"
|
|
89
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
## 1.0.2
|
|
4
|
-
|
|
5
|
-
- Fix all unit tests
|
|
6
|
-
- Add documentation to all operations
|
|
7
|
-
|
|
8
|
-
## 1.0.1
|
|
9
|
-
|
|
10
|
-
- Some minor bug fixes
|
|
11
|
-
- Add Changelog
|
|
12
|
-
|
|
13
|
-
## 1.0.0
|
|
14
|
-
|
|
15
|
-
Initial release as Eligius (used to be called Chronotrigger).
|
|
16
|
-
Entire Chronotrigger code base ported to Typescript.
|