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