@syncfy/authentication-widget 0.0.0 → 0.0.2
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 +8 -14
- package/dist/syncfy-authentication-widget.mjs +8618 -8571
- package/dist/syncfy-authentication-widget.umd.js +90 -90
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Sync Widget
|
|
2
2
|
|
|
3
|
-
User friendly web interface to make use of
|
|
3
|
+
User friendly web interface to make use of Syncfy services.
|
|
4
4
|
|
|
5
5
|
# Quick Start
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Syncfy authentication widget can be installed via npm. It is recommended to get Syncfy authentication widget this way.
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
npm install --save @
|
|
12
|
+
npm install --save @syncfy/authentication-widget
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
**Note**: You'll need to have npm 2.7.0 or greater installed, since this library is hosted as a [scoped package](https://docs.npmjs.com/getting-started/scoped-packages).
|
|
@@ -21,13 +21,13 @@ npm install --save @paybook/sync-widget
|
|
|
21
21
|
Import styles
|
|
22
22
|
|
|
23
23
|
```
|
|
24
|
-
import "@
|
|
24
|
+
import "@syncfy/authentication-widget/dist/style.css";
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
Import SyncfyWidget class
|
|
28
28
|
|
|
29
29
|
```
|
|
30
|
-
import SyncfyWidget from "@
|
|
30
|
+
import SyncfyWidget from "@syncfy/authentication-widget";
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
## Usage
|
|
@@ -40,21 +40,19 @@ To create an instance of SyncfyWidget, you need to create an element in the DOM
|
|
|
40
40
|
<div id="widget"></div>
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
**Note**: The widget will replace this element.
|
|
44
|
-
|
|
45
43
|
Once you have the element, you're ready to instantiate a new SyncfyWidget with your desired configuration.
|
|
46
44
|
|
|
47
45
|
```
|
|
48
46
|
// Any of the following formats may be used
|
|
49
47
|
|
|
50
|
-
var syncfyWidget = new SyncfyWidget("
|
|
48
|
+
var syncfyWidget = new SyncfyWidget("syncfy_token");
|
|
51
49
|
|
|
52
50
|
var syncfyWidget = new SyncfyWidget({
|
|
53
|
-
token: "
|
|
51
|
+
token: "syncfy_token"
|
|
54
52
|
});
|
|
55
53
|
|
|
56
54
|
var syncfyWidget = new SyncfyWidget({
|
|
57
|
-
token: "
|
|
55
|
+
token: "syncfy_token",
|
|
58
56
|
element: "#widget",
|
|
59
57
|
config: {
|
|
60
58
|
locale: "es",
|
|
@@ -65,7 +63,3 @@ var syncfyWidget = new SyncfyWidget({
|
|
|
65
63
|
});
|
|
66
64
|
|
|
67
65
|
```
|
|
68
|
-
|
|
69
|
-
## Documentation
|
|
70
|
-
|
|
71
|
-
- [Widget Documentation](https://github.com/Paybook/sync-widget)
|