@dolphinweex/weex-harmony-transform 0.1.7 → 0.1.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolphinweex/weex-harmony-transform",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "weex harmony adapter",
5
5
  "main": "index.js",
6
6
  "files": [
package/src/adapter.ts CHANGED
@@ -258,6 +258,12 @@ let bridgeModule = {
258
258
  showControlPanelPage:function(options, callback, failCallback) {
259
259
  weexModule.callNative('bridgeModule.showControlPanelPage', { 'options': options }, callback, undefined, failCallback)
260
260
  },
261
+ getAuthToken:function(options, callback, failCallback) {
262
+ weexModule.callNative('bridgeModule.getAuthToken', { 'options': options }, callback, undefined, failCallback)
263
+ },
264
+ backToNative:function(options, callback, failCallback) {
265
+ weexModule.callNative('bridgeModule.backToNative', { 'options': options }, callback, undefined, failCallback)
266
+ },
261
267
  }
262
268
 
263
269
  let deviceInfo = {
@@ -558,6 +564,21 @@ let router = {
558
564
  weexModule.callNative('router.deleteGlobalAppCache', { 'options': param }, callback, undefined, failCallback)
559
565
  },
560
566
  }
567
+ let modal = {
568
+ name: 'modal',
569
+ toast: function (param, callback, failCallback) {
570
+ weexModule.callNative('modal.toast', { 'options': param }, callback, undefined, failCallback)
571
+ },
572
+ alert: function (param, callback, failCallback) {
573
+ weexModule.callNative('modal.alert', { 'options': param }, callback, undefined, failCallback)
574
+ },
575
+ confirm: function (param, callback, failCallback) {
576
+ weexModule.callNative('modal.confirm', { 'options': param }, callback, undefined, failCallback)
577
+ },
578
+ prompt: function (param, callback, failCallback) {
579
+ weexModule.callNative('modal.prompt', { 'options': param }, callback, undefined, failCallback)
580
+ },
581
+ }
561
582
  export {
562
583
  clipboard,
563
584
  weexModule,
@@ -575,5 +596,6 @@ export {
575
596
  singleBlueToothModule,
576
597
  routerModule,
577
598
  nfcModule,
578
- router
599
+ router,
600
+ modal
579
601
  }
@@ -14,7 +14,8 @@ const weexExtModules = [
14
14
  'nfcModule',
15
15
  'storage',
16
16
  'routerModule',
17
- "router"
17
+ "router",
18
+ 'modal'
18
19
  ]
19
20
 
20
21
  module.exports = weexExtModules