@resconet/jsbridge 15.0.0 → 15.2.0-beta.1
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 +44 -44
- package/package.json +26 -26
- package/src/JSBridge.d.ts +3001 -2952
- package/src/JSBridge.js +6174 -6150
- package/src/README.md +61 -61
package/src/README.md
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
# JSBridge Source
|
|
2
|
-
|
|
3
|
-
The repository is used to publish **public** npm package to ... https://registry.npmjs.org/
|
|
4
|
-
|
|
5
|
-
The homepage of package : https://www.npmjs.com/package/@resconet/jsbridge
|
|
6
|
-
|
|
7
|
-
The package can be installed using following command **npm i @resconet/jsbridge**@[version of package]
|
|
8
|
-
|
|
9
|
-
The directory contains:
|
|
10
|
-
* javascript **.js** and typescript **.d.ts** source file
|
|
11
|
-
* readme file **README.md**
|
|
12
|
-
|
|
13
|
-
# Install package in project
|
|
14
|
-
|
|
15
|
-
In your project directory use **npm init** to set up a new or existing npm package. If you want to create default package json file then use --yes parameter. For more information please visit https://docs.npmjs.com/cli/init
|
|
16
|
-
|
|
17
|
-
* install package **npm i @resconet/jsbridge**
|
|
18
|
-
## Include npm module in project
|
|
19
|
-
|
|
20
|
-
* **Javascript file**
|
|
21
|
-
You can use require to include npm module from installed package. For example
|
|
22
|
-
|
|
23
|
-
```javascript
|
|
24
|
-
require ("@resconet/jsbridge/src/JSBridge");
|
|
25
|
-
|
|
26
|
-
function testAlert(){
|
|
27
|
-
MobileCRM.bridge.alert("Test");
|
|
28
|
-
}
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
* **Typescript file**
|
|
32
|
-
You can use import to include npm module from installed package. For example
|
|
33
|
-
|
|
34
|
-
```javascript
|
|
35
|
-
import "@resconet/jsbridge/src/JSBridge"
|
|
36
|
-
|
|
37
|
-
function testAlert(){
|
|
38
|
-
MobileCRM.bridge.alert("Test");
|
|
39
|
-
}
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Versioning
|
|
43
|
-
|
|
44
|
-
The package.json defines the version of JSBridge. e.g. "version": "12.3.1", it means
|
|
45
|
-
* 12.3: Major revision (copies the version of underlying Mobile CRM app)
|
|
46
|
-
* 1: Bug fix release
|
|
47
|
-
|
|
48
|
-
**important** first two numbers mirror the latest version of Mobile CRM native application that supports the features.
|
|
49
|
-
|
|
50
|
-
### Api changes
|
|
51
|
-
|
|
52
|
-
To check the api changes made in the source file, please go to https://www.resco.net/javascript-bridge-reference/#ApiChanges
|
|
53
|
-
|
|
54
|
-
## Publishing
|
|
55
|
-
|
|
56
|
-
The Package is published to npm registry page on release publish event.
|
|
57
|
-
|
|
58
|
-
The Bug fix release number is automatically updated when new js or ts file is pushed.
|
|
59
|
-
|
|
60
|
-
## Contact
|
|
61
|
-
For any questions or any specific circumstances, please contact us on the email mobilecrm@resco.net
|
|
1
|
+
# JSBridge Source
|
|
2
|
+
|
|
3
|
+
The repository is used to publish **public** npm package to ... https://registry.npmjs.org/
|
|
4
|
+
|
|
5
|
+
The homepage of package : https://www.npmjs.com/package/@resconet/jsbridge
|
|
6
|
+
|
|
7
|
+
The package can be installed using following command **npm i @resconet/jsbridge**@[version of package]
|
|
8
|
+
|
|
9
|
+
The directory contains:
|
|
10
|
+
* javascript **.js** and typescript **.d.ts** source file
|
|
11
|
+
* readme file **README.md**
|
|
12
|
+
|
|
13
|
+
# Install package in project
|
|
14
|
+
|
|
15
|
+
In your project directory use **npm init** to set up a new or existing npm package. If you want to create default package json file then use --yes parameter. For more information please visit https://docs.npmjs.com/cli/init
|
|
16
|
+
|
|
17
|
+
* install package **npm i @resconet/jsbridge**
|
|
18
|
+
## Include npm module in project
|
|
19
|
+
|
|
20
|
+
* **Javascript file**
|
|
21
|
+
You can use require to include npm module from installed package. For example
|
|
22
|
+
|
|
23
|
+
```javascript
|
|
24
|
+
require ("@resconet/jsbridge/src/JSBridge");
|
|
25
|
+
|
|
26
|
+
function testAlert(){
|
|
27
|
+
MobileCRM.bridge.alert("Test");
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
* **Typescript file**
|
|
32
|
+
You can use import to include npm module from installed package. For example
|
|
33
|
+
|
|
34
|
+
```javascript
|
|
35
|
+
import "@resconet/jsbridge/src/JSBridge"
|
|
36
|
+
|
|
37
|
+
function testAlert(){
|
|
38
|
+
MobileCRM.bridge.alert("Test");
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Versioning
|
|
43
|
+
|
|
44
|
+
The package.json defines the version of JSBridge. e.g. "version": "12.3.1", it means
|
|
45
|
+
* 12.3: Major revision (copies the version of underlying Mobile CRM app)
|
|
46
|
+
* 1: Bug fix release
|
|
47
|
+
|
|
48
|
+
**important** first two numbers mirror the latest version of Mobile CRM native application that supports the features.
|
|
49
|
+
|
|
50
|
+
### Api changes
|
|
51
|
+
|
|
52
|
+
To check the api changes made in the source file, please go to https://www.resco.net/javascript-bridge-reference/#ApiChanges
|
|
53
|
+
|
|
54
|
+
## Publishing
|
|
55
|
+
|
|
56
|
+
The Package is published to npm registry page on release publish event.
|
|
57
|
+
|
|
58
|
+
The Bug fix release number is automatically updated when new js or ts file is pushed.
|
|
59
|
+
|
|
60
|
+
## Contact
|
|
61
|
+
For any questions or any specific circumstances, please contact us on the email mobilecrm@resco.net
|