plutosdk 0.0.8 → 0.0.9-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 +15 -9
- package/dist/pluto-sdk.js +1123 -1
- package/lib/App.js +13 -6
- package/lib/components/CatAni/index.d.ts +30 -0
- package/lib/components/CatAni/index.js +243 -0
- package/lib/components/Loading/index.d.ts +5 -0
- package/lib/components/Loading/index.js +78 -0
- package/lib/components/Login/index.d.ts +12 -0
- package/lib/components/Login/index.js +27 -3
- package/lib/components/PlayButton/index.d.ts +6 -6
- package/lib/components/PlayButton/index.js +3 -8
- package/lib/components/Purchase/index.d.ts +2 -11
- package/lib/components/Purchase/index.js +37 -54
- package/lib/components/ShareButton/index.js +5 -1
- package/lib/components/Toast/index.d.ts +4 -0
- package/lib/components/Toast/index.js +95 -0
- package/lib/interface.d.ts +1 -0
- package/lib/sdk.d.ts +24 -8
- package/lib/sdk.js +135 -34
- package/lib/utils/Api.d.ts +20 -0
- package/lib/utils/Api.js +94 -0
- package/lib/utils/Net.d.ts +2 -11
- package/lib/utils/Net.js +19 -41
- package/lib/utils/Platform.d.ts +22 -3
- package/lib/utils/Platform.js +63 -14
- package/lib/utils/Utils.d.ts +16 -1
- package/lib/utils/Utils.js +91 -8
- package/lib/utils/WalletManager.js +21 -7
- package/lib/utils/config.d.ts +1 -0
- package/lib/utils/config.js +2 -0
- package/lib/utils/constant.d.ts +13 -9
- package/lib/utils/constant.js +13 -9
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -57,21 +57,27 @@ PlutoSDK.purchase(name, orderId, amount, customData, callback)
|
|
|
57
57
|
This method accepts the `name orderId amount customData callback` as parameters. `customData` and `callback` are optional parameters.
|
|
58
58
|
Please note that the this pointer of the callback method `callback` will be changed.
|
|
59
59
|
|
|
60
|
-
##
|
|
60
|
+
## getShareLink
|
|
61
61
|
```js
|
|
62
|
-
PlutoSDK.
|
|
62
|
+
PlutoSDK.getShareLink()
|
|
63
63
|
```
|
|
64
|
-
This method is
|
|
64
|
+
This method is get share link.
|
|
65
65
|
|
|
66
|
-
##
|
|
66
|
+
## copyShareLink
|
|
67
67
|
```js
|
|
68
|
-
PlutoSDK.
|
|
68
|
+
PlutoSDK.copyShareLink()
|
|
69
69
|
```
|
|
70
|
-
This method is
|
|
70
|
+
This method is copy share link to clipboard.
|
|
71
71
|
|
|
72
|
-
##
|
|
72
|
+
## getItem
|
|
73
73
|
```js
|
|
74
|
-
PlutoSDK.
|
|
74
|
+
PlutoSDK.getItem(key)
|
|
75
75
|
```
|
|
76
|
-
This method
|
|
76
|
+
This method that receives a value from the server using the specified key. It returns a promise.
|
|
77
|
+
|
|
78
|
+
## setItem
|
|
79
|
+
```js
|
|
80
|
+
PlutoSDK.setItem(key, value)
|
|
81
|
+
```
|
|
82
|
+
This method that stores a value in the server using the specified key. It returns a promise.
|
|
77
83
|
|