eligius 1.0.3 → 1.0.5
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 +454 -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 +446 -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/README.md
CHANGED
|
@@ -27,7 +27,9 @@ This section describes the different parts of this configuration.
|
|
|
27
27
|
### systemName property
|
|
28
28
|
|
|
29
29
|
In the rest of this section the property name `systemName` will be shown often. The value of this property describes a named import.
|
|
30
|
-
Currently one resource importer is supported: [`
|
|
30
|
+
Currently one resource importer is supported by default: [`EligiusResourceImporter`](https://github.com/rolandzwaga/eligius/blob/dev/src/importer/eligius-resource-importer.ts).
|
|
31
|
+
However, this importer contains all of Eligius classes, function, providers, etc. So, bundling this with a presentation will bloat the bundle.
|
|
32
|
+
Eligius offers a generator function for this: [`generateImporterSourceCode`](https://github.com/rolandzwaga/eligius/blob/dev/src/build/generate-importer-source-code.ts). This function is able to generate source code (Typescript) for a custom resource importer based on a given Eligius configuration. This will result in an importer that only includes the code that is referenced in the configuration.
|
|
31
33
|
|
|
32
34
|
### engine
|
|
33
35
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IEngineConfiguration } from '../configuration/types';
|
|
2
|
+
export interface IAssetInfo {
|
|
3
|
+
path: string;
|
|
4
|
+
extension: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* This function takes an Eligius engine configuration, a root path for the config and an arbitrary list of asset info.
|
|
8
|
+
* The asset info determines a number of subdirectories in the root path that contain the different assets used by the presentation.
|
|
9
|
+
* I.e. html, json, etc.
|
|
10
|
+
*
|
|
11
|
+
* @param config
|
|
12
|
+
* @param configPath
|
|
13
|
+
* @param assetInfo
|
|
14
|
+
*/
|
|
15
|
+
export declare function generateImporterSourceCode(config: IEngineConfiguration, configPath: string, assetInfo: IAssetInfo[]): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { generateImporterSourceCode } from './generate-importer-source-code';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IEventbusListener } from '../eventbus';
|
|
2
|
+
import { IDiagnosticsAgent } from './types';
|
|
3
|
+
export declare class DevToolEventListener implements IEventbusListener {
|
|
4
|
+
private agent;
|
|
5
|
+
constructor(agent: IDiagnosticsAgent);
|
|
6
|
+
handleEvent(eventName: string, eventTopic: string | undefined, args: any[]): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface IDiagnosticsAgent {
|
|
2
|
+
postMessage(name: TDiagnosticType, data: any): void;
|
|
3
|
+
}
|
|
4
|
+
export interface IDiagnosticsInfo {
|
|
5
|
+
get agent(): IDiagnosticsAgent;
|
|
6
|
+
}
|
|
7
|
+
export declare type TDiagnosticType = 'eligius-diagnostics-event' | 'eligius-diagnostics-action';
|
|
8
|
+
export declare const DEV_TOOLS_KEY = "__ELIGIUS_DEV_TOOLS__";
|