@dcloudio/uni-app-x 0.5.2 → 0.5.4

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": "@dcloudio/uni-app-x",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "author": "DCloud",
@@ -10,7 +10,7 @@ declare class IApp {
10
10
 
11
11
  onEvent(event: string)
12
12
 
13
- addEventListener(event: 'onShow' | 'onHide', callback: (event?: any) => void)
13
+ addEventListener(event: 'onShow' | 'onHide' | 'onExit', callback: (event?: any) => void)
14
14
 
15
15
  addKeyEventListener(
16
16
  event: 'onBackButton',
@@ -1,4 +1,5 @@
1
1
  /// <reference path='./IDocument.d.ts' />
2
+ /// <reference path='./NodeData.d.ts' />
2
3
 
3
4
  /**
4
5
  * @package io.dcloud.uniapp.runtime
@@ -45,7 +46,8 @@ interface IPage {
45
46
  | 'onReachBottom'
46
47
  | 'onPullDownRefresh'
47
48
  | 'onPageScroll'
48
- | 'onResize',
49
+ | 'onResize'
50
+ | 'onWebViewServiceMessage',
49
51
  callback: (event: PageEvent) => void
50
52
  ): void
51
53
 
@@ -68,4 +70,6 @@ interface IPage {
68
70
  loadFontFace(options: LoadFontFaceOptions): void
69
71
 
70
72
  updateStyle(style: Map<String, any | null>): void
73
+
74
+ createDocument(documentData: INodeData): IDocument
71
75
  }
@@ -1,10 +1,21 @@
1
+ /**
2
+ * @package io.dcloud.uniapp.interfaces
3
+ * @autodoc false
4
+ */
5
+ interface INodeData {
6
+ id: string
7
+ name: string
8
+ attrs?: Map<string, any | null>
9
+ style: Map<string, any | null>
10
+ }
11
+
1
12
  /**
2
13
  * @package io.dcloud.uniapp.native.node
3
14
  * @autodoc false
4
15
  */
5
- declare class NodeData {
16
+ declare class NodeData implements INodeData {
6
17
  id: string
7
18
  name: string
8
19
  attrs?: Map<string, any | null>
9
- style?: Map<string, any | null>
20
+ style: Map<string, any | null>
10
21
  }