emr-bridge 1.0.0 → 1.1.0
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 +67 -26
- package/lib/enums.d.ts +0 -2
- package/lib/enums.js +0 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -1
- package/lib/preload.d.ts +2 -2
- package/lib/preload.js +2 -2
- package/lib/renderer.d.ts +1 -1
- package/lib/renderer.js +1 -1
- package/lib/scripts/Bridge.d.ts +6 -0
- package/lib/scripts/Bridge.js +31 -0
- package/lib/scripts/Main.d.ts +6 -0
- package/lib/scripts/Main.js +38 -0
- package/lib/{provider.d.ts → scripts/preloadProvider.d.ts} +0 -0
- package/lib/scripts/preloadProvider.js +51 -0
- package/lib/scripts/provider.d.ts +5 -0
- package/lib/scripts/provider.js +111 -0
- package/lib/scripts/publish.d.ts +118 -0
- package/lib/{publish.js → scripts/publish.js} +54 -71
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types.d.ts +19 -2
- package/package.json +1 -1
- package/lib/bridge.d.ts +0 -10
- package/lib/bridge.js +0 -98
- package/lib/main.d.ts +0 -10
- package/lib/main.js +0 -110
- package/lib/provider.js +0 -63
- package/lib/publish.d.ts +0 -66
package/lib/publish.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Access, Scope } from './enums';
|
|
2
|
-
import type { PublicFunction, PublicProperty } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Restricts the access scope
|
|
5
|
-
*/
|
|
6
|
-
export declare function scope(scope: Scope): (target: any, key: string) => void;
|
|
7
|
-
/**
|
|
8
|
-
* Restricts access
|
|
9
|
-
*/
|
|
10
|
-
export declare function access(access: Access): (target: any, key: string) => void;
|
|
11
|
-
/**
|
|
12
|
-
* Makes the method available for **renderer** and **preload** processes.
|
|
13
|
-
*
|
|
14
|
-
* _only for static_
|
|
15
|
-
* @param name - name by which the method will be accessed
|
|
16
|
-
*/
|
|
17
|
-
export declare function publicStaticMethod(name?: string): MethodDecorator;
|
|
18
|
-
/**
|
|
19
|
-
* Makes the method available for **renderer** and **preload** processes.
|
|
20
|
-
*
|
|
21
|
-
* _only for non-static_
|
|
22
|
-
*
|
|
23
|
-
* _required `providePublic(classInstance)`_
|
|
24
|
-
* @param name - name by which the method will be accessed
|
|
25
|
-
*/
|
|
26
|
-
export declare function publicMethod(name?: string): MethodDecorator;
|
|
27
|
-
/**
|
|
28
|
-
* Makes the property available for **renderer** and **preload** processes.
|
|
29
|
-
*
|
|
30
|
-
* _only for static_
|
|
31
|
-
* @param name - name by which the property will be accessed
|
|
32
|
-
*/
|
|
33
|
-
export declare function publicStaticProperty(name?: string): PropertyDecorator;
|
|
34
|
-
/**
|
|
35
|
-
* Makes the property available for **renderer** and **preload** processes.
|
|
36
|
-
*
|
|
37
|
-
* _only for non-static_
|
|
38
|
-
*
|
|
39
|
-
* _required `providePublic(classInstance)`_
|
|
40
|
-
* @param name - name by which the property will be accessed
|
|
41
|
-
*/
|
|
42
|
-
export declare function publicProperty(name?: string): PropertyDecorator;
|
|
43
|
-
/**
|
|
44
|
-
* Binds all public entities of a class to a specific instance.
|
|
45
|
-
*
|
|
46
|
-
* _only for class instance_
|
|
47
|
-
*/
|
|
48
|
-
export declare function providePublic<InstanceType>(instance: InstanceType): InstanceType;
|
|
49
|
-
/**
|
|
50
|
-
* Makes the function available for **renderer** and **preload** processes.
|
|
51
|
-
*
|
|
52
|
-
* _only for function_
|
|
53
|
-
* @param func - linked function
|
|
54
|
-
* @param name - name by which the function will be accessed
|
|
55
|
-
* @param scopes - function scopes
|
|
56
|
-
*/
|
|
57
|
-
export declare function publicFunction(func: PublicFunction, name: string, scopes?: Scope[]): void;
|
|
58
|
-
/**
|
|
59
|
-
* Makes the function available for **renderer** and **preload** processes.
|
|
60
|
-
*
|
|
61
|
-
* _only for variables_
|
|
62
|
-
* @param name - name by which the variable will be accessed
|
|
63
|
-
* @param value - variable getter/setter
|
|
64
|
-
* @param scopes - variable scopes
|
|
65
|
-
*/
|
|
66
|
-
export declare function publicVariable(name: string, value: PublicProperty, scopes?: Scope[]): void;
|