@tarojs/plugin-platform-weapp 4.0.0-beta.87 → 4.0.0-beta.89

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.
@@ -1,466 +0,0 @@
1
- export declare const components: {
2
- Progress: {
3
- 'border-radius': string;
4
- 'font-size': string;
5
- duration: string;
6
- bindActiveEnd: string;
7
- };
8
- RichText: {
9
- space: string;
10
- 'user-select': string;
11
- };
12
- Text: {
13
- 'user-select': string;
14
- overflow: string;
15
- 'max-lines': string;
16
- };
17
- Map: {
18
- polygons: string;
19
- subkey: string;
20
- rotate: string;
21
- skew: string;
22
- 'max-scale': string;
23
- 'min-scale': string;
24
- 'enable-3D': string;
25
- 'show-compass': string;
26
- 'show-scale': string;
27
- 'enable-overlooking': string;
28
- 'enable-auto-max-overlooking': string;
29
- 'enable-zoom': string;
30
- 'enable-scroll': string;
31
- 'enable-rotate': string;
32
- 'enable-satellite': string;
33
- 'enable-traffic': string;
34
- 'enable-poi': string;
35
- 'enable-building': string;
36
- setting: string;
37
- bindLabelTap: string;
38
- bindRegionChange: string;
39
- bindPoiTap: string;
40
- bindPolylineTap: string;
41
- bindAbilitySuccess: string;
42
- bindAbilityFailed: string;
43
- bindAuthSuccess: string;
44
- bindInterpolatePoint: string;
45
- bindError: string;
46
- bindAnchorPointTap: string;
47
- };
48
- Button: {
49
- lang: string;
50
- 'session-from': string;
51
- 'send-message-title': string;
52
- 'send-message-path': string;
53
- 'send-message-img': string;
54
- 'app-parameter': string;
55
- 'show-message-card': string;
56
- 'business-id': string;
57
- bindGetUserInfo: string;
58
- bindContact: string;
59
- bindGetPhoneNumber: string;
60
- bindGetRealTimePhoneNumber: string;
61
- bindChooseAvatar: string;
62
- bindError: string;
63
- bindOpenSetting: string;
64
- bindLaunchApp: string;
65
- bindAgreePrivacyAuthorization: string;
66
- };
67
- Form: {
68
- 'report-submit-timeout': string;
69
- };
70
- Input: {
71
- 'always-embed': string;
72
- 'adjust-position': string;
73
- 'hold-keyboard': string;
74
- 'safe-password-cert-path': string;
75
- 'safe-password-length': string;
76
- 'safe-password-time-stamp': string;
77
- 'safe-password-nonce': string;
78
- 'safe-password-salt': string;
79
- 'safe-password-custom-hash': string;
80
- 'auto-fill': string;
81
- bindKeyboardHeightChange: string;
82
- bindNicknameReview: string;
83
- };
84
- Picker: {
85
- 'header-text': string;
86
- level: string;
87
- };
88
- PickerView: {
89
- 'immediate-change': string;
90
- bindPickStart: string;
91
- bindPickEnd: string;
92
- };
93
- Slider: {
94
- color: string;
95
- 'selected-color': string;
96
- };
97
- Textarea: {
98
- 'show-confirm-bar': string;
99
- 'adjust-position': string;
100
- 'hold-keyboard': string;
101
- 'disable-default-padding': string;
102
- 'confirm-type': string;
103
- 'confirm-hold': string;
104
- bindKeyboardHeightChange: string;
105
- };
106
- ScrollView: {
107
- 'enable-flex': string;
108
- 'scroll-anchoring': string;
109
- enhanced: string;
110
- 'using-sticky': string;
111
- 'paging-enabled': string;
112
- 'enable-passive': string;
113
- 'refresher-enabled': string;
114
- 'refresher-threshold': string;
115
- 'refresher-default-style': string;
116
- 'refresher-background': string;
117
- 'refresher-triggered': string;
118
- bounces: string;
119
- 'show-scrollbar': string;
120
- 'fast-deceleration': string;
121
- type: string;
122
- reverse: string;
123
- clip: string;
124
- 'enable-back-to-top': string;
125
- 'cache-extent': string;
126
- 'min-drag-distance': string;
127
- 'scroll-into-view-within-extent': string;
128
- 'scroll-into-view-alignment': string;
129
- padding: string;
130
- 'refresher-two-level-enabled': string;
131
- 'refresher-two-level-triggered': string;
132
- 'refresher-two-level-threshold': string;
133
- 'refresher-two-level-close-threshold': string;
134
- 'refresher-two-level-scroll-enabled': string;
135
- 'refresher-ballistic-refresh-enabled': string;
136
- 'refresher-two-level-pinned': string;
137
- bindDragStart: string;
138
- bindDragging: string;
139
- bindDragEnd: string;
140
- bindRefresherPulling: string;
141
- bindRefresherRefresh: string;
142
- bindRefresherRestore: string;
143
- bindRefresherAbort: string;
144
- bindScrollStart: string;
145
- bindScrollEnd: string;
146
- bindRefresherWillRefresh: string;
147
- bindRefresherStatusChange: string;
148
- };
149
- StickySection: {
150
- 'push-pinned-header': string;
151
- padding: string;
152
- };
153
- GridView: {
154
- type: string;
155
- 'cross-axis-count': string;
156
- 'max-cross-axis-extent': string;
157
- 'main-axis-gap': string;
158
- 'cross-axis-gap': string;
159
- padding: string;
160
- };
161
- GridBuilder: {
162
- type: string;
163
- list: string;
164
- 'cross-axis-count': string;
165
- 'max-cross-axis-extent': string;
166
- 'main-axis-gap': string;
167
- 'cross-axis-gap': string;
168
- padding: string;
169
- bindItemBuild: string;
170
- bindItemDispose: string;
171
- };
172
- ListView: {
173
- padding: string;
174
- };
175
- ListBuilder: {
176
- list: string;
177
- type: string;
178
- padding: string;
179
- 'child-count': string;
180
- 'child-height': string;
181
- bindItemBuild: string;
182
- bindItemDispose: string;
183
- };
184
- StickyHeader: {
185
- 'offset-top': string;
186
- padding: string;
187
- };
188
- Swiper: {
189
- 'snap-to-edge': string;
190
- 'easing-function': string;
191
- };
192
- SwiperItem: {
193
- 'skip-hidden-item-layout': string;
194
- };
195
- Navigator: {
196
- target: string;
197
- 'app-id': string;
198
- path: string;
199
- 'extra-data': string;
200
- version: string;
201
- };
202
- Camera: {
203
- mode: string;
204
- resolution: string;
205
- 'frame-size': string;
206
- bindInitDone: string;
207
- bindScanCode: string;
208
- };
209
- Image: {
210
- webp: string;
211
- 'show-menu-by-longpress': string;
212
- };
213
- LivePlayer: {
214
- mode: string;
215
- 'sound-mode': string;
216
- 'auto-pause-if-navigate': string;
217
- 'auto-pause-if-open-native': string;
218
- 'picture-in-picture-mode': string;
219
- 'enable-auto-rotation': string;
220
- 'referrer-policy': string;
221
- 'enable-casting': string;
222
- bindstatechange: string;
223
- bindfullscreenchange: string;
224
- bindnetstatus: string;
225
- bindAudioVolumeNotify: string;
226
- bindEnterPictureInPicture: string;
227
- bindLeavePictureInPicture: string;
228
- bindCastingUserSelect: string;
229
- bindCastingStateChange: string;
230
- bindCastingInterrupt: string;
231
- };
232
- Video: {
233
- title: string;
234
- 'play-btn-position': string;
235
- 'enable-play-gesture': string;
236
- 'auto-pause-if-navigate': string;
237
- 'auto-pause-if-open-native': string;
238
- 'vslide-gesture': string;
239
- 'vslide-gesture-in-fullscreen': string;
240
- 'show-bottom-progress': string;
241
- 'ad-unit-id': string;
242
- 'poster-for-crawler': string;
243
- 'show-casting-button': string;
244
- 'picture-in-picture-mode': string;
245
- 'enable-auto-rotation': string;
246
- 'show-screen-lock-button': string;
247
- 'show-snapshot-button': string;
248
- 'show-background-playback-button': string;
249
- 'background-poster': string;
250
- 'referrer-policy': string;
251
- 'is-drm': string;
252
- 'is-live': string;
253
- 'provision-url': string;
254
- 'certificate-url': string;
255
- 'license-url': string;
256
- 'preferred-peak-bit-rate': string;
257
- bindProgress: string;
258
- bindLoadedMetadata: string;
259
- bindControlsToggle: string;
260
- bindEnterPictureInPicture: string;
261
- bindLeavePictureInPicture: string;
262
- bindSeekComplete: string;
263
- bindCastingUserSelect: string;
264
- bindCastingStateChange: string;
265
- bindCastingInterrupt: string;
266
- bindAdLoad: string;
267
- bindAdError: string;
268
- bindAdClose: string;
269
- bindAdPlay: string;
270
- };
271
- Canvas: {
272
- type: string;
273
- };
274
- Ad: {
275
- 'ad-type': string;
276
- 'ad-theme': string;
277
- };
278
- CoverView: {
279
- 'marker-id': string;
280
- slot: string;
281
- };
282
- Editor: {
283
- 'read-only': string;
284
- placeholder: string;
285
- 'show-img-size': string;
286
- 'show-img-toolbar': string;
287
- 'show-img-resize': string;
288
- focus: string;
289
- bindReady: string;
290
- bindFocus: string;
291
- bindBlur: string;
292
- bindInput: string;
293
- bindStatusChange: string;
294
- name: string;
295
- };
296
- MatchMedia: {
297
- 'min-width': string;
298
- 'max-width': string;
299
- width: string;
300
- 'min-height': string;
301
- 'max-height': string;
302
- height: string;
303
- orientation: string;
304
- };
305
- FunctionalPageNavigator: {
306
- version: string;
307
- name: string;
308
- args: string;
309
- bindSuccess: string;
310
- bindFail: string;
311
- bindCancel: string;
312
- };
313
- LivePusher: {
314
- url: string;
315
- mode: string;
316
- autopush: string;
317
- muted: string;
318
- 'enable-camera': string;
319
- 'auto-focus': string;
320
- orientation: string;
321
- beauty: string;
322
- whiteness: string;
323
- aspect: string;
324
- 'min-bitrate': string;
325
- 'max-bitrate': string;
326
- 'audio-quality': string;
327
- 'waiting-image': string;
328
- 'waiting-image-hash': string;
329
- zoom: string;
330
- 'device-position': string;
331
- 'background-mute': string;
332
- mirror: string;
333
- 'remote-mirror': string;
334
- 'local-mirror': string;
335
- 'audio-reverb-type': string;
336
- 'enable-mic': string;
337
- 'enable-agc': string;
338
- 'enable-ans': string;
339
- 'audio-volume-type': string;
340
- 'video-width': string;
341
- 'video-height': string;
342
- 'beauty-style': string;
343
- filter: string;
344
- 'picture-in-picture-mode': string;
345
- animation: string;
346
- bindStateChange: string;
347
- bindNetStatus: string;
348
- bindBgmStart: string;
349
- bindBgmProgress: string;
350
- bindBgmComplete: string;
351
- bindAudioVolumeNotify: string;
352
- };
353
- OfficialAccount: {
354
- bindLoad: string;
355
- bindError: string;
356
- };
357
- OpenData: {
358
- type: string;
359
- 'open-gid': string;
360
- lang: string;
361
- 'default-text': string;
362
- 'default-avatar': string;
363
- bindError: string;
364
- };
365
- NavigationBar: {
366
- title: string;
367
- loading: string;
368
- 'front-color': string;
369
- 'background-color': string;
370
- 'color-animation-duration': string;
371
- 'color-animation-timing-func': string;
372
- };
373
- PageMeta: {
374
- 'background-text-style': string;
375
- 'background-color': string;
376
- 'background-color-top': string;
377
- 'background-color-bottom': string;
378
- 'root-background-color': string;
379
- 'scroll-top': string;
380
- 'scroll-duration': string;
381
- 'page-style': string;
382
- 'root-font-size': string;
383
- 'page-orientation': string;
384
- bindResize: string;
385
- bindScroll: string;
386
- bindScrollDone: string;
387
- };
388
- VoipRoom: {
389
- openid: string;
390
- mode: string;
391
- 'device-position': string;
392
- bindError: string;
393
- };
394
- AdCustom: {
395
- 'unit-id': string;
396
- 'ad-intervals': string;
397
- bindLoad: string;
398
- bindError: string;
399
- };
400
- PageContainer: {
401
- show: string;
402
- duration: string;
403
- 'z-index': string;
404
- overlay: string;
405
- position: string;
406
- round: string;
407
- 'close-on-slide-down': string;
408
- 'overlay-style': string;
409
- 'custom-style': string;
410
- bindBeforeEnter: string;
411
- bindEnter: string;
412
- bindAfterEnter: string;
413
- bindBeforeLeave: string;
414
- bindLeave: string;
415
- bindAfterLeave: string;
416
- bindClickOverlay: string;
417
- };
418
- ShareElement: {
419
- mapkey: string;
420
- transform: string;
421
- duration: string;
422
- 'easing-function': string;
423
- };
424
- KeyboardAccessory: {};
425
- RootPortal: {
426
- enable: string;
427
- };
428
- ChannelLive: {
429
- 'feed-id': string;
430
- 'finder-user-name': string;
431
- };
432
- ChannelVideo: {
433
- 'feed-id': string;
434
- 'finder-user-name': string;
435
- 'feed-token': string;
436
- autoplay: string;
437
- loop: string;
438
- muted: string;
439
- 'object-fit': string;
440
- bindError: string;
441
- };
442
- Snapshot: {
443
- mode: string;
444
- };
445
- Span: {};
446
- OpenContainer: {
447
- transitionType: string;
448
- transitionDuration: string;
449
- closedColor: string;
450
- closedElevation: string;
451
- closeBorderRadius: string;
452
- middleColor: string;
453
- openColor: string;
454
- openElevation: string;
455
- openBorderRadius: string;
456
- };
457
- DraggableSheet: {
458
- initialChildSize: string;
459
- minChildSize: string;
460
- maxChildSize: string;
461
- snap: string;
462
- snapSizes: string;
463
- };
464
- NestedScrollHeader: {};
465
- NestedScrollBody: {};
466
- };
@@ -1,8 +0,0 @@
1
- import Weapp from './program';
2
- import type { IPluginContext } from '@tarojs/service';
3
- export { Weapp };
4
- export interface IOptions {
5
- enablekeyboardAccessory?: boolean;
6
- }
7
- declare const _default: (ctx: IPluginContext, options: IOptions) => void;
8
- export default _default;
@@ -1,35 +0,0 @@
1
- import { TaroPlatformBase } from '@tarojs/service';
2
- import { Template } from './template';
3
- import type { IOptions } from './index';
4
- export default class Weapp extends TaroPlatformBase {
5
- template: Template;
6
- platform: string;
7
- globalObject: string;
8
- projectConfigJson: string;
9
- runtimePath: string;
10
- taroComponentsPath: string;
11
- fileType: {
12
- templ: string;
13
- style: string;
14
- config: string;
15
- script: string;
16
- xs: string;
17
- };
18
- /**
19
- * 1. setupTransaction - init
20
- * 2. setup
21
- * 3. setupTransaction - close
22
- * 4. buildTransaction - init
23
- * 5. build
24
- * 6. buildTransaction - close
25
- */
26
- constructor(ctx: any, config: any, pluginOptions?: IOptions);
27
- /**
28
- * 增加组件或修改组件属性
29
- */
30
- modifyTemplate(pluginOptions?: IOptions): void;
31
- /**
32
- * 修改 Webpack 配置
33
- */
34
- modifyWebpackConfig(): void;
35
- }
@@ -1,13 +0,0 @@
1
- import { initNativeApi } from './apis';
2
- export { initNativeApi };
3
- export * from './apis-list';
4
- export * from './components';
5
- export declare const hostConfig: {
6
- initNativeApi: typeof initNativeApi;
7
- getMiniLifecycle(config: any): any;
8
- transferHydrateData(data: any, element: any, componentsAlias: any): {
9
- sid: any;
10
- v: string;
11
- nn: any;
12
- } | undefined;
13
- };
@@ -1,25 +0,0 @@
1
- import { UnRecursiveTemplate } from '@tarojs/shared/dist/template';
2
- import type { IOptions } from './index';
3
- export declare class Template extends UnRecursiveTemplate {
4
- pluginOptions: IOptions;
5
- supportXS: boolean;
6
- Adapter: {
7
- if: string;
8
- else: string;
9
- elseif: string;
10
- for: string;
11
- forItem: string;
12
- forIndex: string;
13
- key: string;
14
- xs: string;
15
- type: string;
16
- };
17
- transferComponents: Record<string, Record<string, string>>;
18
- constructor(pluginOptions?: IOptions);
19
- buildXsTemplate(filePath?: string): string;
20
- createMiniComponents(components: any): any;
21
- replacePropName(name: string, value: string, componentName: string, componentAlias: any): string;
22
- buildXSTepFocus(nn: string): string;
23
- modifyTemplateResult: (res: string, nodeName: string, _: any, children: any) => string;
24
- buildPageTemplate: (baseTempPath: string, page: any) => string;
25
- }
File without changes