@tarojs/plugin-platform-h5 4.0.0-beta.7 → 4.0.0-beta.71

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.
@@ -14,7 +14,7 @@ const tsconfig: ts.CompilerOptions = {
14
14
  paths: {
15
15
  '@tarojs/api': ['node_modules/@tarojs/taro/types']
16
16
  },
17
- 'types': ['@tarojs/taro-h5/types']
17
+ types: ['@tarojs/taro-h5/types']
18
18
  }
19
19
  const CompRGX = /^Taro(.*)Core$/
20
20
  const IgnoreSymbols = [
@@ -52,12 +52,12 @@ export function generateDocumentation (
52
52
 
53
53
  function visitAST (node: ts.Node, o: DocEntry[]) {
54
54
  // Only consider exported nodes
55
- if (!isNodeExported(node as ts.Declaration) || node.kind === ts.SyntaxKind.EndOfFileToken || node.kind === ts.SyntaxKind.DeclareKeyword
56
- || ts.isImportDeclaration(node) || ts.isImportEqualsDeclaration(node) || ts.isImportClause(node)
57
- || ts.isExportAssignment(node) || ts.isExportDeclaration(node)
58
- || ts.isExpressionStatement(node) || ts.isEmptyStatement(node)
59
- || ts.isStringLiteral(node)
60
- || node.kind === ts.SyntaxKind.ExportKeyword) {
55
+ if (!isNodeExported(node as ts.Declaration) || node.kind === ts.SyntaxKind.EndOfFileToken || node.kind === ts.SyntaxKind.DeclareKeyword ||
56
+ ts.isImportDeclaration(node) || ts.isImportEqualsDeclaration(node) || ts.isImportClause(node) ||
57
+ ts.isExportAssignment(node) || ts.isExportDeclaration(node) ||
58
+ ts.isExpressionStatement(node) || ts.isEmptyStatement(node) ||
59
+ ts.isStringLiteral(node) ||
60
+ node.kind === ts.SyntaxKind.ExportKeyword) {
61
61
  return
62
62
  }
63
63
 
@@ -47,8 +47,8 @@ export function isNotAPI (flags?: ts.SymbolFlags): flags is ts.SymbolFlags.Signa
47
47
  }
48
48
 
49
49
  export function isFunction (flags?: ts.SymbolFlags): flags is ts.SymbolFlags.Function | ts.SymbolFlags.Method {
50
- return SymbolFlags.includes((flags || -1) - ts.SymbolFlags.Function)
51
- || SymbolFlags.includes((flags || -1) - ts.SymbolFlags.Method)
50
+ return SymbolFlags.includes((flags || -1) - ts.SymbolFlags.Function) ||
51
+ SymbolFlags.includes((flags || -1) - ts.SymbolFlags.Method)
52
52
  }
53
53
 
54
54
  export function isOptional (flags?: ts.SymbolFlags): flags is ts.SymbolFlags.Optional {
@@ -927,46 +927,16 @@
927
927
  "success": "void",
928
928
  "return": "Current"
929
929
  },
930
- "stopLocationUpdate": {
931
- "object": "*",
932
- "success": "void",
933
- "return": "Promise<Partial<CallbackResult> & Record<string, unknown> & CallbackResult>"
934
- },
935
930
  "startLocationUpdateBackground": {
936
931
  "object": "*",
937
932
  "success": "void",
938
933
  "return": "Promise<Partial<CallbackResult> & Record<string, unknown> & CallbackResult>"
939
934
  },
940
- "startLocationUpdate": {
941
- "object": "*",
942
- "success": "void",
943
- "return": "Promise<Partial<CallbackResult> & Record<string, unknown> & CallbackResult>"
944
- },
945
935
  "openLocation": {
946
936
  "object": "Partial<{ scale: number; }>",
947
937
  "success": "void",
948
938
  "return": "Promise<any>"
949
939
  },
950
- "onLocationChangeError": {
951
- "object": "*",
952
- "success": "void",
953
- "return": "Promise<Partial<CallbackResult> & Record<string, unknown> & CallbackResult>"
954
- },
955
- "onLocationChange": {
956
- "object": "*",
957
- "success": "void",
958
- "return": "Promise<Partial<CallbackResult> & Record<string, unknown> & CallbackResult>"
959
- },
960
- "offLocationChangeError": {
961
- "object": "*",
962
- "success": "void",
963
- "return": "Promise<Partial<CallbackResult> & Record<string, unknown> & CallbackResult>"
964
- },
965
- "offLocationChange": {
966
- "object": "*",
967
- "success": "void",
968
- "return": "Promise<Partial<CallbackResult> & Record<string, unknown> & CallbackResult>"
969
- },
970
940
  "getLocation": {
971
941
  "object": "Partial<Option>",
972
942
  "success": "void",
@@ -987,6 +957,20 @@
987
957
  "success": "void",
988
958
  "return": "Promise<SuccessCallbackResult>"
989
959
  },
960
+ "onLocationChange": "*",
961
+ "offLocationChange": "*",
962
+ "onLocationChangeError": "*",
963
+ "offLocationChangeError": "*",
964
+ "stopLocationUpdate": {
965
+ "object": "Partial<Option>",
966
+ "success": "void",
967
+ "return": "Promise<CallbackResult>"
968
+ },
969
+ "startLocationUpdate": {
970
+ "object": "Partial<Option>",
971
+ "success": "void",
972
+ "return": "Promise<CallbackResult>"
973
+ },
990
974
  "stopVoice": {
991
975
  "object": "*",
992
976
  "success": "void",
@@ -1023,7 +1007,7 @@
1023
1007
  "return": "Promise<Partial<CallbackResult> & Record<string, unknown> & CallbackResult>"
1024
1008
  },
1025
1009
  "createInnerAudioContext": {
1026
- "object": "void",
1010
+ "object": "Option",
1027
1011
  "success": "void",
1028
1012
  "return": "InnerAudioContext"
1029
1013
  },
@@ -2014,22 +1998,14 @@
2014
1998
  "success": "void",
2015
1999
  "return": "Promise<Partial<CallbackResult> & Record<string, unknown> & CallbackResult>"
2016
2000
  },
2017
- "showNavigationBarLoading": {
2018
- "object": "*",
2019
- "success": "void",
2020
- "return": "Promise<Partial<CallbackResult> & Record<string, unknown> & CallbackResult>"
2021
- },
2001
+ "showNavigationBarLoading": "*",
2022
2002
  "setNavigationBarTitle": "*",
2023
2003
  "setNavigationBarColor": {
2024
2004
  "object": "Option",
2025
2005
  "success": "void",
2026
2006
  "return": "Promise<CallbackResult>"
2027
2007
  },
2028
- "hideNavigationBarLoading": {
2029
- "object": "*",
2030
- "success": "void",
2031
- "return": "Promise<Partial<CallbackResult> & Record<string, unknown> & CallbackResult>"
2032
- },
2008
+ "hideNavigationBarLoading": "*",
2033
2009
  "hideHomeButton": {
2034
2010
  "object": "*",
2035
2011
  "success": "void",
@@ -2194,10 +2170,12 @@
2194
2170
  "hoverStayTime": "number"
2195
2171
  },
2196
2172
  "custom-wrapper": {},
2173
+ "draggable-sheet": {},
2197
2174
  "editor": {},
2198
2175
  "follow-swan": {},
2199
2176
  "form": {},
2200
2177
  "functional-page-navigator": {},
2178
+ "grid-builder": {},
2201
2179
  "grid-view": {},
2202
2180
  "icon": {
2203
2181
  "color": "string",
@@ -2230,6 +2208,7 @@
2230
2208
  },
2231
2209
  "lifestyle": {},
2232
2210
  "like": {},
2211
+ "list-builder": {},
2233
2212
  "list-view": {},
2234
2213
  "live-player": {},
2235
2214
  "live-pusher": {},
@@ -2267,7 +2246,10 @@
2267
2246
  "openType": "string",
2268
2247
  "url": "string"
2269
2248
  },
2249
+ "nested-scroll-body": {},
2250
+ "nested-scroll-header": {},
2270
2251
  "official-account": {},
2252
+ "open-container": {},
2271
2253
  "open-data": {},
2272
2254
  "page-container": {},
2273
2255
  "page-meta": {},
@@ -2360,12 +2342,14 @@
2360
2342
  },
2361
2343
  "slot": {},
2362
2344
  "snapshot": {},
2345
+ "span": {},
2363
2346
  "sticky-header": {},
2364
2347
  "sticky-section": {},
2365
2348
  "swiper": {
2366
2349
  "autoplay": "boolean",
2367
2350
  "circular": "boolean",
2368
2351
  "current": "number",
2352
+ "currentItemId": "string",
2369
2353
  "displayMultipleItems": "number",
2370
2354
  "duration": "number",
2371
2355
  "full": "boolean",