@tarojs/plugin-platform-h5 4.0.0-beta.13 → 4.0.0-beta.130

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/LICENSE CHANGED
@@ -154,15 +154,8 @@ See `/LICENSE` for details of the license.
154
154
 
155
155
  ==================
156
156
 
157
- MIT (stencil-vue2-output-target):
158
- The following files embed [stencil-vue2-output-target](https://github.com/diondree/stencil-vue2-output-target) MIT:
159
- `/packages/taro-components-library-vue2/src/vue-component-lib/utils.ts`
160
- See `/LICENSE` for details of the license.
161
-
162
- ==================
163
-
164
157
  MIT (weui):
165
- The following files embed [stencil-vue2-output-target](https://github.com/Tencent/weui) MIT:
158
+ The following files embed [weui](https://github.com/Tencent/weui) MIT:
166
159
  `/packages/taro-components/src/components/*.scss`
167
160
  See `/LICENSE.txt` for details of the license.
168
161
 
@@ -172,3 +165,10 @@ Apache-2.0 (intersection-observer):
172
165
  The following files embed [intersection-observer](https://github.com/GoogleChromeLabs/intersection-observer) Apache-2.0:
173
166
  `/packages/taro-api/src/polyfill/intersection-observer.ts`
174
167
  See `/LICENSE.txt` for details of the license.
168
+
169
+ ==================
170
+
171
+ MIT (babel-plugin-jsx-dom-expressions):
172
+ The following files embed [babel-plugin-jsx-dom-expressions](https://github.com/ryansolid/dom-expressions/blob/main/packages/babel-plugin-jsx-dom-expressions) MIT:
173
+ `/packages/babel-plugin-transform-solid-jsx/src/*`
174
+ See `/LICENSE` for details of the license.
@@ -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",
@@ -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,12 +2208,40 @@
2230
2208
  },
2231
2209
  "lifestyle": {},
2232
2210
  "like": {},
2211
+ "list-builder": {},
2233
2212
  "list-view": {},
2234
2213
  "live-player": {},
2235
2214
  "live-pusher": {},
2236
2215
  "login": {},
2237
2216
  "lottie": {},
2238
- "map": {},
2217
+ "map": {
2218
+ "circles": "MapProps.circle[]",
2219
+ "enable3D": "boolean",
2220
+ "enableAutoMaxOverlooking": "boolean",
2221
+ "enableBuilding": "boolean",
2222
+ "enableOverlooking": "boolean",
2223
+ "enableRotate": "boolean",
2224
+ "enableSatellite": "boolean",
2225
+ "enableScroll": "boolean",
2226
+ "enableTraffic": "boolean",
2227
+ "enableZoom": "boolean",
2228
+ "height": "string",
2229
+ "latitude": "number",
2230
+ "layerStyle": "number",
2231
+ "longitude": "number",
2232
+ "markers": "MapProps.marker[]",
2233
+ "maxScale": "number",
2234
+ "minScale": "number",
2235
+ "polygons": "MapProps.polygon[]",
2236
+ "polyline": "MapProps.polyline[]",
2237
+ "rotate": "number",
2238
+ "scale": "number",
2239
+ "showCompass": "boolean",
2240
+ "showScale": "boolean",
2241
+ "skew": "number",
2242
+ "subkey": "string",
2243
+ "width": "string"
2244
+ },
2239
2245
  "match-media": {},
2240
2246
  "movable-area": {
2241
2247
  "scaleArea": "boolean"
@@ -2267,7 +2273,10 @@
2267
2273
  "openType": "string",
2268
2274
  "url": "string"
2269
2275
  },
2276
+ "nested-scroll-body": {},
2277
+ "nested-scroll-header": {},
2270
2278
  "official-account": {},
2279
+ "open-container": {},
2271
2280
  "open-data": {},
2272
2281
  "page-container": {},
2273
2282
  "page-meta": {},
@@ -2360,12 +2369,14 @@
2360
2369
  },
2361
2370
  "slot": {},
2362
2371
  "snapshot": {},
2372
+ "span": {},
2363
2373
  "sticky-header": {},
2364
2374
  "sticky-section": {},
2365
2375
  "swiper": {
2366
2376
  "autoplay": "boolean",
2367
2377
  "circular": "boolean",
2368
2378
  "current": "number",
2379
+ "currentItemId": "string",
2369
2380
  "displayMultipleItems": "number",
2370
2381
  "duration": "number",
2371
2382
  "full": "boolean",
package/dist/index.d.ts CHANGED
@@ -1,27 +1,6 @@
1
- import { TaroPlatformWeb, IPluginContext, TConfig } from "@tarojs/service";
2
- declare class H5 extends TaroPlatformWeb {
3
- platform: string;
4
- runtimePath: string[] | string;
5
- constructor(ctx: IPluginContext, config: TConfig);
6
- get framework(): "vue3" | "react" | "preact" | "nerv" | "vue";
7
- get useHtmlComponents(): boolean;
8
- get useDeprecatedAdapterComponent(): boolean;
9
- get apiLibrary(): string;
10
- get aliasFramework(): string;
11
- protected mainFields: string[];
12
- get componentLibrary(): string;
13
- get componentAdapter(): string;
14
- get routerLibrary(): string;
15
- get libraryDefinition(): string;
16
- /**
17
- * 修改 Webpack 配置
18
- */
19
- modifyWebpackConfig(): void;
20
- /**
21
- * 修改 Vite 配置
22
- */
23
- modifyViteConfig(): void;
24
- }
1
+ import H5 from './program';
2
+ import type { IPluginContext } from '@tarojs/service';
3
+ export { H5 };
25
4
  declare const _default: (ctx: IPluginContext) => void;
26
- export { _default as default, H5 };
27
- export { resolveSync } from "@tarojs/helper";
5
+ export default _default;
6
+ export * from './utils';