@tarojs/plugin-platform-ascf 3.6.38 → 4.0.8-beta.3
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 +8 -8
- package/README.md +3 -3
- package/dist/components-react.js +22 -1
- package/dist/components-react.js.map +1 -1
- package/dist/index.js +242 -39
- package/dist/index.js.map +1 -1
- package/dist/runtime-utils.js +218 -21
- package/dist/runtime-utils.js.map +1 -1
- package/dist/runtime.js +218 -21
- package/dist/runtime.js.map +1 -1
- 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/template.d.ts +25 -0
- package/index.js +4 -4
- package/package.json +16 -19
- package/types/components-react.d.ts +0 -17
- package/types/index.d.ts +0 -59
- package/types/runtime-utils.d.ts +0 -344
- /package/{types → dist/types}/runtime.d.ts +0 -0
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 [
|
|
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.
|
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# `@tarojs/plugin-platform-ascf`
|
|
2
|
-
|
|
3
|
-
Taro 插件。用于支持编译为ascf。
|
|
1
|
+
# `@tarojs/plugin-platform-ascf`
|
|
2
|
+
|
|
3
|
+
Taro 插件。用于支持编译为ascf。
|
package/dist/components-react.js
CHANGED
|
@@ -55,6 +55,27 @@ const ShareElement = 'share-element';
|
|
|
55
55
|
const KeyboardAccessory = 'keyboard-accessory';
|
|
56
56
|
const RootPortal = 'root-portal';
|
|
57
57
|
const ChannelLive = 'channel-live';
|
|
58
|
+
const ChannelVideo = 'channel-video';
|
|
59
|
+
const ListView = 'list-view';
|
|
60
|
+
const ListBuilder = 'list-builder';
|
|
61
|
+
const GridView = 'grid-view';
|
|
62
|
+
const GridBuilder = 'grid-builder';
|
|
63
|
+
const StickyHeader = 'sticky-header';
|
|
64
|
+
const StickySection = 'sticky-section';
|
|
65
|
+
const Snapshot = 'snapshot';
|
|
66
|
+
const Span = 'span';
|
|
67
|
+
const OpenContainer = 'open-container';
|
|
68
|
+
const DraggableSheet = 'draggable-sheet';
|
|
69
|
+
const NestedScrollHeader = 'nested-scroll-header';
|
|
70
|
+
const NestedScrollBody = 'nested-scroll-body';
|
|
71
|
+
const DoubleTapGestureHandler = 'double-tap-gesture-handler';
|
|
72
|
+
const ForcePressGestureHandler = 'force-press-gesture-handler';
|
|
73
|
+
const HorizontalDragGestureHandler = 'horizontal-drag-gesture-handler';
|
|
74
|
+
const LongPressGestureHandler = 'long-press-gesture-handler';
|
|
75
|
+
const PanGestureHandler = 'pan-gesture-handler';
|
|
76
|
+
const ScaleGestureHandler = 'scale-gesture-handler';
|
|
77
|
+
const TapGestureHandler = 'tap-gesture-handler';
|
|
78
|
+
const VerticalDragGestureHandler = 'vertical-drag-gesture-handler';
|
|
58
79
|
|
|
59
|
-
export { Ad, AdCustom, Audio, Block, Button, Camera, Canvas, ChannelLive, Checkbox, CheckboxGroup, CoverImage, CoverView, CustomWrapper, Editor, Form, FunctionalPageNavigator, Icon, Image, Input, KeyboardAccessory, Label, LivePlayer, LivePusher, Map, MatchMedia, MovableArea, MovableView, NativeSlot, NavigationBar, Navigator, OfficialAccount, OpenData, PageContainer, PageMeta, Picker, PickerView, PickerViewColumn, Progress, Radio, RadioGroup, RichText, RootPortal, ScrollView, ShareElement, Slider, Slot, Swiper, SwiperItem, Switch, Text, Textarea, Video, View, VoipRoom, WebView };
|
|
80
|
+
export { Ad, AdCustom, Audio, Block, Button, Camera, Canvas, ChannelLive, ChannelVideo, Checkbox, CheckboxGroup, CoverImage, CoverView, CustomWrapper, DoubleTapGestureHandler, DraggableSheet, Editor, ForcePressGestureHandler, Form, FunctionalPageNavigator, GridBuilder, GridView, HorizontalDragGestureHandler, Icon, Image, Input, KeyboardAccessory, Label, ListBuilder, ListView, LivePlayer, LivePusher, LongPressGestureHandler, Map, MatchMedia, MovableArea, MovableView, NativeSlot, NavigationBar, Navigator, NestedScrollBody, NestedScrollHeader, OfficialAccount, OpenContainer, OpenData, PageContainer, PageMeta, PanGestureHandler, Picker, PickerView, PickerViewColumn, Progress, Radio, RadioGroup, RichText, RootPortal, ScaleGestureHandler, ScrollView, ShareElement, Slider, Slot, Snapshot, Span, StickyHeader, StickySection, Swiper, SwiperItem, Switch, TapGestureHandler, Text, Textarea, VerticalDragGestureHandler, Video, View, VoipRoom, WebView };
|
|
60
81
|
//# sourceMappingURL=components-react.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-react.js","sources":["../src/components-react.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"components-react.js","sources":["../../taro-components/mini/index.js","../src/components-react.ts"],"sourcesContent":["export const View = 'view'\nexport const Icon = 'icon'\nexport const Progress = 'progress'\nexport const RichText = 'rich-text'\nexport const Text = 'text'\nexport const Button = 'button'\nexport const Checkbox = 'checkbox'\nexport const CheckboxGroup = 'checkbox-group'\nexport const Form = 'form'\nexport const Input = 'input'\nexport const Label = 'label'\nexport const Picker = 'picker'\nexport const PickerView = 'picker-view'\nexport const PickerViewColumn = 'picker-view-column'\nexport const Radio = 'radio'\nexport const RadioGroup = 'radio-group'\nexport const Slider = 'slider'\nexport const Switch = 'switch'\nexport const CoverImage = 'cover-image'\nexport const Textarea = 'textarea'\nexport const CoverView = 'cover-view'\nexport const MovableArea = 'movable-area'\nexport const MovableView = 'movable-view'\nexport const ScrollView = 'scroll-view'\nexport const Swiper = 'swiper'\nexport const SwiperItem = 'swiper-item'\nexport const Navigator = 'navigator'\nexport const Audio = 'audio'\nexport const Camera = 'camera'\nexport const Image = 'image'\nexport const LivePlayer = 'live-player'\nexport const Video = 'video'\nexport const Canvas = 'canvas'\nexport const Ad = 'ad'\nexport const WebView = 'web-view'\nexport const Block = 'block'\nexport const Map = 'map'\nexport const Slot = 'slot'\nexport const NativeSlot = 'native-slot'\nexport const CustomWrapper = 'custom-wrapper'\n",null],"names":[],"mappings":"AAAY,MAAC,IAAI,GAAG;AACR,MAAC,IAAI,GAAG;AACR,MAAC,QAAQ,GAAG;AACZ,MAAC,QAAQ,GAAG;AACZ,MAAC,IAAI,GAAG;AACR,MAAC,MAAM,GAAG;AACV,MAAC,QAAQ,GAAG;AACZ,MAAC,aAAa,GAAG;AACjB,MAAC,IAAI,GAAG;AACR,MAAC,KAAK,GAAG;AACT,MAAC,KAAK,GAAG;AACT,MAAC,MAAM,GAAG;AACV,MAAC,UAAU,GAAG;AACd,MAAC,gBAAgB,GAAG;AACpB,MAAC,KAAK,GAAG;AACT,MAAC,UAAU,GAAG;AACd,MAAC,MAAM,GAAG;AACV,MAAC,MAAM,GAAG;AACV,MAAC,UAAU,GAAG;AACd,MAAC,QAAQ,GAAG;AACZ,MAAC,SAAS,GAAG;AACb,MAAC,WAAW,GAAG;AACf,MAAC,WAAW,GAAG;AACf,MAAC,UAAU,GAAG;AACd,MAAC,MAAM,GAAG;AACV,MAAC,UAAU,GAAG;AACd,MAAC,SAAS,GAAG;AACb,MAAC,KAAK,GAAG;AACT,MAAC,MAAM,GAAG;AACV,MAAC,KAAK,GAAG;AACT,MAAC,UAAU,GAAG;AACd,MAAC,KAAK,GAAG;AACT,MAAC,MAAM,GAAG;AACV,MAAC,EAAE,GAAG;AACN,MAAC,OAAO,GAAG;AACX,MAAC,KAAK,GAAG;AACT,MAAC,GAAG,GAAG;AACP,MAAC,IAAI,GAAG;AACR,MAAC,UAAU,GAAG;AACd,MAAC,aAAa,GAAG;;ACvC7B;AAEO,MAAM,MAAM,GAAG;AACf,MAAM,UAAU,GAAG;AACnB,MAAM,uBAAuB,GAAG;AAChC,MAAM,UAAU,GAAG;AACnB,MAAM,eAAe,GAAG;AACxB,MAAM,QAAQ,GAAG;AACjB,MAAM,aAAa,GAAG;AACtB,MAAM,QAAQ,GAAG;AACjB,MAAM,QAAQ,GAAG;AACjB,MAAM,QAAQ,GAAG;AACjB,MAAM,aAAa,GAAG;AACtB,MAAM,YAAY,GAAG;AACrB,MAAM,iBAAiB,GAAG;AAC1B,MAAM,UAAU,GAAG;AACnB,MAAM,WAAW,GAAG;AACpB,MAAM,YAAY,GAAG;AACrB,MAAM,QAAQ,GAAG;AACjB,MAAM,WAAW,GAAG;AACpB,MAAM,QAAQ,GAAG;AACjB,MAAM,WAAW,GAAG;AACpB,MAAM,YAAY,GAAG;AACrB,MAAM,aAAa,GAAG;AACtB,MAAM,QAAQ,GAAG;AACjB,MAAM,IAAI,GAAG;AACb,MAAM,aAAa,GAAG;AACtB,MAAM,cAAc,GAAG;AACvB,MAAM,kBAAkB,GAAG;AAC3B,MAAM,gBAAgB,GAAG;AACzB,MAAM,uBAAuB,GAAG;AAChC,MAAM,wBAAwB,GAAG;AACjC,MAAM,4BAA4B,GAAG;AACrC,MAAM,uBAAuB,GAAG;AAChC,MAAM,iBAAiB,GAAG;AAC1B,MAAM,mBAAmB,GAAG;AAC5B,MAAM,iBAAiB,GAAG;AAC1B,MAAM,0BAA0B,GAAG;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
19
19
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
20
20
|
PERFORMANCE OF THIS SOFTWARE.
|
|
21
21
|
***************************************************************************** */
|
|
22
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
23
|
+
|
|
22
24
|
|
|
23
25
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
24
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -39,6 +41,7 @@ const _true = 'true';
|
|
|
39
41
|
const _false = 'false';
|
|
40
42
|
const _empty = '';
|
|
41
43
|
const _zero = '0';
|
|
44
|
+
const _object = '{}';
|
|
42
45
|
const components = {
|
|
43
46
|
// ======== 调整属性 ========
|
|
44
47
|
Progress: {
|
|
@@ -49,10 +52,13 @@ const components = {
|
|
|
49
52
|
},
|
|
50
53
|
RichText: {
|
|
51
54
|
space: _empty,
|
|
52
|
-
'user-select': _false
|
|
55
|
+
'user-select': _false,
|
|
56
|
+
mode: "'default'"
|
|
53
57
|
},
|
|
54
58
|
Text: {
|
|
55
|
-
'user-select': _false
|
|
59
|
+
'user-select': _false,
|
|
60
|
+
overflow: 'visible',
|
|
61
|
+
'max-lines': ''
|
|
56
62
|
},
|
|
57
63
|
Map: {
|
|
58
64
|
polygons: '[]',
|
|
@@ -65,6 +71,7 @@ const components = {
|
|
|
65
71
|
'show-compass': _false,
|
|
66
72
|
'show-scale': _false,
|
|
67
73
|
'enable-overlooking': _false,
|
|
74
|
+
'enable-auto-max-overlooking': _false,
|
|
68
75
|
'enable-zoom': _true,
|
|
69
76
|
'enable-scroll': _true,
|
|
70
77
|
'enable-rotate': _false,
|
|
@@ -72,10 +79,16 @@ const components = {
|
|
|
72
79
|
'enable-traffic': _false,
|
|
73
80
|
'enable-poi': _true,
|
|
74
81
|
'enable-building': _true,
|
|
75
|
-
setting:
|
|
82
|
+
setting: _object,
|
|
76
83
|
bindLabelTap: _empty,
|
|
77
84
|
bindRegionChange: _empty,
|
|
78
85
|
bindPoiTap: _empty,
|
|
86
|
+
bindPolylineTap: _empty,
|
|
87
|
+
bindAbilitySuccess: _empty,
|
|
88
|
+
bindAbilityFailed: _empty,
|
|
89
|
+
bindAuthSuccess: _empty,
|
|
90
|
+
bindInterpolatePoint: _empty,
|
|
91
|
+
bindError: _empty,
|
|
79
92
|
bindAnchorPointTap: _empty
|
|
80
93
|
},
|
|
81
94
|
Button: {
|
|
@@ -90,10 +103,12 @@ const components = {
|
|
|
90
103
|
bindGetUserInfo: _empty,
|
|
91
104
|
bindContact: _empty,
|
|
92
105
|
bindGetPhoneNumber: _empty,
|
|
106
|
+
bindGetRealTimePhoneNumber: _empty,
|
|
93
107
|
bindChooseAvatar: _empty,
|
|
94
108
|
bindError: _empty,
|
|
95
109
|
bindOpenSetting: _empty,
|
|
96
|
-
bindLaunchApp: _empty
|
|
110
|
+
bindLaunchApp: _empty,
|
|
111
|
+
bindAgreePrivacyAuthorization: _empty
|
|
97
112
|
},
|
|
98
113
|
Form: {
|
|
99
114
|
'report-submit-timeout': _zero
|
|
@@ -109,11 +124,17 @@ const components = {
|
|
|
109
124
|
'safe-password-salt': '',
|
|
110
125
|
'safe-password-custom-hash': '',
|
|
111
126
|
'auto-fill': _empty,
|
|
127
|
+
'cursor-color': '',
|
|
112
128
|
bindKeyboardHeightChange: _empty,
|
|
113
|
-
bindNicknameReview: _empty
|
|
129
|
+
bindNicknameReview: _empty,
|
|
130
|
+
bindSelectionChange: _empty,
|
|
131
|
+
bindKeyboardCompositionStart: _empty,
|
|
132
|
+
bindKeyboardCompositionUpdate: _empty,
|
|
133
|
+
bindKeyboardCompositionEnd: _empty,
|
|
114
134
|
},
|
|
115
135
|
Picker: {
|
|
116
|
-
'header-text': _empty
|
|
136
|
+
'header-text': _empty,
|
|
137
|
+
level: 'region'
|
|
117
138
|
},
|
|
118
139
|
PickerView: {
|
|
119
140
|
'immediate-change': _false,
|
|
@@ -131,32 +152,111 @@ const components = {
|
|
|
131
152
|
'disable-default-padding': _false,
|
|
132
153
|
'confirm-type': "'return'",
|
|
133
154
|
'confirm-hold': _false,
|
|
134
|
-
|
|
155
|
+
'adjust-keyboard-to': "'cursor'",
|
|
156
|
+
bindKeyboardHeightChange: _empty,
|
|
157
|
+
bindSelectionChange: _empty,
|
|
158
|
+
bindKeyboardCompositionStart: _empty,
|
|
159
|
+
bindKeyboardCompositionUpdate: _empty,
|
|
160
|
+
bindKeyboardCompositionEnd: _empty,
|
|
135
161
|
},
|
|
136
162
|
ScrollView: {
|
|
137
163
|
'enable-flex': _false,
|
|
138
164
|
'scroll-anchoring': _false,
|
|
165
|
+
enhanced: _false,
|
|
166
|
+
'using-sticky': _false,
|
|
167
|
+
'paging-enabled': _false,
|
|
168
|
+
'enable-passive': _false,
|
|
139
169
|
'refresher-enabled': _false,
|
|
140
170
|
'refresher-threshold': '45',
|
|
141
171
|
'refresher-default-style': "'black'",
|
|
142
172
|
'refresher-background': "'#FFF'",
|
|
143
173
|
'refresher-triggered': _false,
|
|
144
|
-
enhanced: _false,
|
|
145
174
|
bounces: _true,
|
|
146
175
|
'show-scrollbar': _true,
|
|
147
|
-
'paging-enabled': _false,
|
|
148
176
|
'fast-deceleration': _false,
|
|
177
|
+
type: "'list'",
|
|
178
|
+
'associative-container': "''",
|
|
179
|
+
reverse: _false,
|
|
180
|
+
clip: _true,
|
|
181
|
+
'enable-back-to-top': _false,
|
|
182
|
+
'cache-extent': _empty,
|
|
183
|
+
'min-drag-distance': '18',
|
|
184
|
+
'scroll-into-view-within-extent': _false,
|
|
185
|
+
'scroll-into-view-alignment': "'start'",
|
|
186
|
+
padding: '[0,0,0,0]',
|
|
187
|
+
'refresher-two-level-enabled': _false,
|
|
188
|
+
'refresher-two-level-triggered': _false,
|
|
189
|
+
'refresher-two-level-threshold': '150',
|
|
190
|
+
'refresher-two-level-close-threshold': '80',
|
|
191
|
+
'refresher-two-level-scroll-enabled': _false,
|
|
192
|
+
'refresher-ballistic-refresh-enabled': _false,
|
|
193
|
+
'refresher-two-level-pinned': _false,
|
|
149
194
|
bindDragStart: _empty,
|
|
150
195
|
bindDragging: _empty,
|
|
151
196
|
bindDragEnd: _empty,
|
|
152
197
|
bindRefresherPulling: _empty,
|
|
153
198
|
bindRefresherRefresh: _empty,
|
|
154
199
|
bindRefresherRestore: _empty,
|
|
155
|
-
bindRefresherAbort: _empty
|
|
200
|
+
bindRefresherAbort: _empty,
|
|
201
|
+
bindScrollStart: _empty,
|
|
202
|
+
bindScrollEnd: _empty,
|
|
203
|
+
bindRefresherWillRefresh: _empty,
|
|
204
|
+
bindRefresherStatusChange: _empty
|
|
205
|
+
},
|
|
206
|
+
StickySection: {
|
|
207
|
+
'push-pinned-header': _true,
|
|
208
|
+
padding: '[0, 0, 0, 0]'
|
|
209
|
+
},
|
|
210
|
+
GridView: {
|
|
211
|
+
type: "'aligned'",
|
|
212
|
+
'cross-axis-count': '2',
|
|
213
|
+
'max-cross-axis-extent': _zero,
|
|
214
|
+
'main-axis-gap': _zero,
|
|
215
|
+
'cross-axis-gap': _zero,
|
|
216
|
+
padding: '[0, 0, 0, 0]'
|
|
217
|
+
},
|
|
218
|
+
GridBuilder: {
|
|
219
|
+
type: "'aligned'",
|
|
220
|
+
list: '[]',
|
|
221
|
+
'cross-axis-count': '2',
|
|
222
|
+
'max-cross-axis-extent': _zero,
|
|
223
|
+
'main-axis-gap': _zero,
|
|
224
|
+
'cross-axis-gap': _zero,
|
|
225
|
+
padding: '[0, 0, 0, 0]',
|
|
226
|
+
bindItemBuild: _empty,
|
|
227
|
+
bindItemDispose: _empty
|
|
228
|
+
},
|
|
229
|
+
ListView: {
|
|
230
|
+
padding: '[0, 0, 0, 0]'
|
|
231
|
+
},
|
|
232
|
+
ListBuilder: {
|
|
233
|
+
list: '[]',
|
|
234
|
+
type: 'static',
|
|
235
|
+
padding: '[0, 0, 0, 0]',
|
|
236
|
+
'child-count': _empty,
|
|
237
|
+
'child-height': _empty,
|
|
238
|
+
bindItemBuild: _empty,
|
|
239
|
+
bindItemDispose: _empty
|
|
240
|
+
},
|
|
241
|
+
StickyHeader: {
|
|
242
|
+
'offset-top': '0',
|
|
243
|
+
padding: '[0, 0, 0, 0]'
|
|
156
244
|
},
|
|
157
245
|
Swiper: {
|
|
158
246
|
'snap-to-edge': _false,
|
|
159
|
-
'easing-function': "'default'"
|
|
247
|
+
'easing-function': "'default'",
|
|
248
|
+
'layout-type': "'normal'",
|
|
249
|
+
'transformer-type': "'scaleAndFade'",
|
|
250
|
+
'indicator-type': "'normal'",
|
|
251
|
+
'indicator-margin': '10',
|
|
252
|
+
'indicator-spacing': '4',
|
|
253
|
+
'indicator-radius': '4',
|
|
254
|
+
'indicator-width': '8',
|
|
255
|
+
'indicator-height': '8',
|
|
256
|
+
'indicator-alignment': "'auto'",
|
|
257
|
+
'indicator-offset': '[0, 0]',
|
|
258
|
+
'scroll-with-animation': _true,
|
|
259
|
+
'cache-extent': '0',
|
|
160
260
|
},
|
|
161
261
|
SwiperItem: {
|
|
162
262
|
'skip-hidden-item-layout': _false
|
|
@@ -177,7 +277,8 @@ const components = {
|
|
|
177
277
|
},
|
|
178
278
|
Image: {
|
|
179
279
|
webp: _false,
|
|
180
|
-
'show-menu-by-longpress': _false
|
|
280
|
+
'show-menu-by-longpress': _false,
|
|
281
|
+
'fade-in': _false
|
|
181
282
|
},
|
|
182
283
|
LivePlayer: {
|
|
183
284
|
mode: "'live'",
|
|
@@ -185,12 +286,18 @@ const components = {
|
|
|
185
286
|
'auto-pause-if-navigate': _true,
|
|
186
287
|
'auto-pause-if-open-native': _true,
|
|
187
288
|
'picture-in-picture-mode': '[]',
|
|
289
|
+
'enable-auto-rotation': _false,
|
|
290
|
+
'referrer-policy': "'no-referrer'",
|
|
291
|
+
'enable-casting': _false,
|
|
188
292
|
bindstatechange: _empty,
|
|
189
293
|
bindfullscreenchange: _empty,
|
|
190
294
|
bindnetstatus: _empty,
|
|
191
295
|
bindAudioVolumeNotify: _empty,
|
|
192
296
|
bindEnterPictureInPicture: _empty,
|
|
193
|
-
bindLeavePictureInPicture: _empty
|
|
297
|
+
bindLeavePictureInPicture: _empty,
|
|
298
|
+
bindCastingUserSelect: _empty,
|
|
299
|
+
bindCastingStateChange: _empty,
|
|
300
|
+
bindCastingInterrupt: _empty
|
|
194
301
|
},
|
|
195
302
|
Video: {
|
|
196
303
|
title: _empty,
|
|
@@ -200,6 +307,7 @@ const components = {
|
|
|
200
307
|
'auto-pause-if-open-native': _true,
|
|
201
308
|
'vslide-gesture': _false,
|
|
202
309
|
'vslide-gesture-in-fullscreen': _true,
|
|
310
|
+
'show-bottom-progress': _true,
|
|
203
311
|
'ad-unit-id': _empty,
|
|
204
312
|
'poster-for-crawler': _empty,
|
|
205
313
|
'show-casting-button': _false,
|
|
@@ -214,12 +322,22 @@ const components = {
|
|
|
214
322
|
'show-snapshot-button': _false,
|
|
215
323
|
'show-background-playback-button': _false,
|
|
216
324
|
'background-poster': _empty,
|
|
325
|
+
'referrer-policy': "'no-referrer'",
|
|
326
|
+
'is-drm': _false,
|
|
327
|
+
'is-live': _false,
|
|
328
|
+
'provision-url': _empty,
|
|
329
|
+
'certificate-url': _empty,
|
|
330
|
+
'license-url': _empty,
|
|
331
|
+
'preferred-peak-bit-rate': _empty,
|
|
217
332
|
bindProgress: _empty,
|
|
218
333
|
bindLoadedMetadata: _empty,
|
|
219
334
|
bindControlsToggle: _empty,
|
|
220
335
|
bindEnterPictureInPicture: _empty,
|
|
221
336
|
bindLeavePictureInPicture: _empty,
|
|
222
337
|
bindSeekComplete: _empty,
|
|
338
|
+
bindCastingUserSelect: _empty,
|
|
339
|
+
bindCastingStateChange: _empty,
|
|
340
|
+
bindCastingInterrupt: _empty,
|
|
223
341
|
bindAdLoad: _empty,
|
|
224
342
|
bindAdError: _empty,
|
|
225
343
|
bindAdClose: _empty,
|
|
@@ -299,6 +417,7 @@ const components = {
|
|
|
299
417
|
'video-height': '640',
|
|
300
418
|
'beauty-style': "'smooth'",
|
|
301
419
|
filter: "'standard'",
|
|
420
|
+
'picture-in-picture-mode': '[]',
|
|
302
421
|
animation: _empty,
|
|
303
422
|
bindStateChange: _empty,
|
|
304
423
|
bindNetStatus: _empty,
|
|
@@ -322,7 +441,7 @@ const components = {
|
|
|
322
441
|
NavigationBar: {
|
|
323
442
|
title: _empty,
|
|
324
443
|
loading: _false,
|
|
325
|
-
'front-color':
|
|
444
|
+
'front-color': "'#000000'",
|
|
326
445
|
'background-color': _empty,
|
|
327
446
|
'color-animation-duration': _zero,
|
|
328
447
|
'color-animation-timing-func': "'linear'"
|
|
@@ -332,10 +451,12 @@ const components = {
|
|
|
332
451
|
'background-color': _empty,
|
|
333
452
|
'background-color-top': _empty,
|
|
334
453
|
'background-color-bottom': _empty,
|
|
454
|
+
'root-background-color': _empty,
|
|
335
455
|
'scroll-top': "''",
|
|
336
456
|
'scroll-duration': '300',
|
|
337
457
|
'page-style': "''",
|
|
338
458
|
'root-font-size': "''",
|
|
459
|
+
'page-orientation': "''",
|
|
339
460
|
bindResize: _empty,
|
|
340
461
|
bindScroll: _empty,
|
|
341
462
|
bindScrollDone: _empty
|
|
@@ -374,14 +495,63 @@ const components = {
|
|
|
374
495
|
mapkey: _empty,
|
|
375
496
|
transform: _false,
|
|
376
497
|
duration: '300',
|
|
377
|
-
'easing-function': "'ease-out'"
|
|
498
|
+
'easing-function': "'ease-out'",
|
|
499
|
+
'transition-on-gesture': _false,
|
|
500
|
+
'shuttle-on-push': "'to'",
|
|
501
|
+
'shuttle-on-pop': "'to'",
|
|
502
|
+
'rect-tween-type': "'materialRectArc'"
|
|
378
503
|
},
|
|
379
504
|
KeyboardAccessory: {},
|
|
380
|
-
RootPortal: {
|
|
505
|
+
RootPortal: {
|
|
506
|
+
enable: _true
|
|
507
|
+
},
|
|
381
508
|
ChannelLive: {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
}
|
|
509
|
+
'feed-id': _empty,
|
|
510
|
+
'finder-user-name': _empty
|
|
511
|
+
},
|
|
512
|
+
ChannelVideo: {
|
|
513
|
+
'feed-id': _empty,
|
|
514
|
+
'finder-user-name': _empty,
|
|
515
|
+
'feed-token': _empty,
|
|
516
|
+
autoplay: _false,
|
|
517
|
+
loop: _false,
|
|
518
|
+
muted: _false,
|
|
519
|
+
'object-fit': "'contain'",
|
|
520
|
+
bindError: _empty
|
|
521
|
+
},
|
|
522
|
+
Snapshot: {
|
|
523
|
+
mode: "'view'",
|
|
524
|
+
},
|
|
525
|
+
Span: {},
|
|
526
|
+
OpenContainer: {
|
|
527
|
+
transitionType: "'fade'",
|
|
528
|
+
transitionDuration: '300',
|
|
529
|
+
closedColor: "'white'",
|
|
530
|
+
closedElevation: _zero,
|
|
531
|
+
closeBorderRadius: _zero,
|
|
532
|
+
middleColor: _empty,
|
|
533
|
+
openColor: "'white'",
|
|
534
|
+
openElevation: _zero,
|
|
535
|
+
openBorderRadius: _zero
|
|
536
|
+
},
|
|
537
|
+
DraggableSheet: {
|
|
538
|
+
initialChildSize: '0.5',
|
|
539
|
+
minChildSize: '0.25',
|
|
540
|
+
maxChildSize: '1.0',
|
|
541
|
+
snap: _false,
|
|
542
|
+
snapSizes: '[]'
|
|
543
|
+
},
|
|
544
|
+
NestedScrollHeader: {},
|
|
545
|
+
NestedScrollBody: {},
|
|
546
|
+
// skyline手势组件
|
|
547
|
+
DoubleTapGestureHandler: {},
|
|
548
|
+
ForcePressGestureHandler: {},
|
|
549
|
+
HorizontalDragGestureHandler: {},
|
|
550
|
+
LongPressGestureHandler: {},
|
|
551
|
+
PanGestureHandler: {},
|
|
552
|
+
ScaleGestureHandler: {},
|
|
553
|
+
TapGestureHandler: {},
|
|
554
|
+
VerticalDragGestureHandler: {},
|
|
385
555
|
};
|
|
386
556
|
|
|
387
557
|
class Template extends template.UnRecursiveTemplate {
|
|
@@ -399,19 +569,21 @@ class Template extends template.UnRecursiveTemplate {
|
|
|
399
569
|
xs: 'hjs',
|
|
400
570
|
type: 'ascf'
|
|
401
571
|
};
|
|
402
|
-
this.
|
|
572
|
+
this.transferComponents = {};
|
|
573
|
+
this.modifyTemplateResult = (res, nodeName, _, children) => {
|
|
403
574
|
if (nodeName === 'keyboard-accessory')
|
|
404
575
|
return '';
|
|
405
576
|
if ((nodeName === 'textarea' || nodeName === 'input') && this.pluginOptions.enablekeyboardAccessory) {
|
|
406
577
|
const list = res.split('</template>');
|
|
407
578
|
const componentAlias = this.componentsAlias[nodeName];
|
|
408
579
|
const nodeNameAlias = componentAlias._num;
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
580
|
+
const xs = `xs.a(c, item.${"nn" /* Shortcuts.NodeName */}, l)`;
|
|
581
|
+
const target = `
|
|
582
|
+
<keyboard-accessory style="{{i.cn[0].st}}" class="{{i.cn[0].cl}}" bindtap="eh" id="{{i.cn[0].uid||i.cn[0].sid}}" data-sid="{{i.cn[0].sid}}">
|
|
583
|
+
<block has:for="{{i.cn[0].cn}}" has:key="sid">
|
|
584
|
+
<template is="{{${xs}}}" data="{{i:item,c:c+1,l:xs.f(l,item.${"nn" /* Shortcuts.NodeName */})}}" />
|
|
585
|
+
</block>
|
|
586
|
+
</keyboard-accessory>
|
|
415
587
|
`;
|
|
416
588
|
const templateFocus = list[1]
|
|
417
589
|
.replace(children, target)
|
|
@@ -424,10 +596,42 @@ class Template extends template.UnRecursiveTemplate {
|
|
|
424
596
|
}
|
|
425
597
|
return res;
|
|
426
598
|
};
|
|
599
|
+
this.buildPageTemplate = (baseTempPath, page) => {
|
|
600
|
+
let pageMetaTemplate = '';
|
|
601
|
+
const pageConfig = page === null || page === void 0 ? void 0 : page.content;
|
|
602
|
+
if (pageConfig === null || pageConfig === void 0 ? void 0 : pageConfig.enablePageMeta) {
|
|
603
|
+
const getComponentAttrs = (componentName, dataPath) => {
|
|
604
|
+
return Object.entries(this.transferComponents[componentName]).reduce((sum, [key, value]) => {
|
|
605
|
+
sum += `${key}="${value === 'eh' ? value : `{{${value.replace('i.', dataPath)}}}`}" `;
|
|
606
|
+
return sum;
|
|
607
|
+
}, '');
|
|
608
|
+
};
|
|
609
|
+
const pageMetaAttrs = getComponentAttrs('page-meta', 'pageMeta.');
|
|
610
|
+
const navigationBarAttrs = getComponentAttrs('navigation-bar', 'navigationBar.');
|
|
611
|
+
pageMetaTemplate = `
|
|
612
|
+
<hjs module="xs" src="${baseTempPath.replace('base.hxml', 'utils.hjs')}" />
|
|
613
|
+
<page-meta data-sid="{{pageMeta.sid}}" ${pageMetaAttrs}>
|
|
614
|
+
<navigation-bar ${navigationBarAttrs}/>
|
|
615
|
+
</page-meta>`;
|
|
616
|
+
}
|
|
617
|
+
const template = `<import src="${baseTempPath}"/>${pageMetaTemplate}
|
|
618
|
+
<template is="taro_tmpl" data="{{${this.dataKeymap('root:root')}}}" />`;
|
|
619
|
+
return template;
|
|
620
|
+
};
|
|
427
621
|
this.pluginOptions = pluginOptions || {};
|
|
622
|
+
this.nestElements.set('root-portal', 3);
|
|
623
|
+
}
|
|
624
|
+
buildXsTemplate(filePath = './utils') {
|
|
625
|
+
return `<hjs module="xs" src="${filePath}.hjs" />`;
|
|
428
626
|
}
|
|
429
|
-
|
|
430
|
-
|
|
627
|
+
createMiniComponents(components) {
|
|
628
|
+
const result = super.createMiniComponents(components);
|
|
629
|
+
// PageMeta & NavigationBar
|
|
630
|
+
this.transferComponents['page-meta'] = result['page-meta'];
|
|
631
|
+
this.transferComponents['navigation-bar'] = result['navigation-bar'];
|
|
632
|
+
delete result['page-meta'];
|
|
633
|
+
delete result['navigation-bar'];
|
|
634
|
+
return result;
|
|
431
635
|
}
|
|
432
636
|
replacePropName(name, value, componentName, componentAlias) {
|
|
433
637
|
if (value === 'eh') {
|
|
@@ -448,13 +652,13 @@ class Template extends template.UnRecursiveTemplate {
|
|
|
448
652
|
const textarea = this.componentsAlias.textarea._num;
|
|
449
653
|
const input = this.componentsAlias.input._num;
|
|
450
654
|
const ka = this.componentsAlias['keyboard-accessory']._num;
|
|
451
|
-
return `function(i, prefix) {
|
|
452
|
-
var s = i.focus !== undefined ? 'focus' : 'blur'
|
|
453
|
-
var r = prefix + i.${nn} + '_' + s
|
|
454
|
-
if ((i.nn === '${textarea}' || i.nn === '${input}') && i.cn[0] && i.cn[0].nn === '${ka}') {
|
|
455
|
-
r = r + '_ka'
|
|
456
|
-
}
|
|
457
|
-
return r
|
|
655
|
+
return `function(i, prefix) {
|
|
656
|
+
var s = i.focus !== undefined ? 'focus' : 'blur'
|
|
657
|
+
var r = prefix + i.${nn} + '_' + s
|
|
658
|
+
if ((i.nn === '${textarea}' || i.nn === '${input}') && i.cn[0] && i.cn[0].nn === '${ka}') {
|
|
659
|
+
r = r + '_ka'
|
|
660
|
+
}
|
|
661
|
+
return r
|
|
458
662
|
}`;
|
|
459
663
|
}
|
|
460
664
|
else {
|
|
@@ -492,7 +696,6 @@ class AscfApp extends service.TaroPlatformBase {
|
|
|
492
696
|
close() {
|
|
493
697
|
this.modifyTemplate(pluginOptions);
|
|
494
698
|
this.modifyWebpackConfig();
|
|
495
|
-
this.generateProjectConfig('ascf.config.json', 'ascf.config.json');
|
|
496
699
|
}
|
|
497
700
|
});
|
|
498
701
|
}
|
|
@@ -527,8 +730,8 @@ var index = (ctx, options) => {
|
|
|
527
730
|
ctx.registerPlatform({
|
|
528
731
|
name: 'ascf',
|
|
529
732
|
useConfigName: 'mini',
|
|
530
|
-
fn(
|
|
531
|
-
return __awaiter(this,
|
|
733
|
+
fn(_a) {
|
|
734
|
+
return __awaiter(this, arguments, void 0, function* ({ config }) {
|
|
532
735
|
const program = new AscfApp(ctx, config, options || {});
|
|
533
736
|
yield program.start();
|
|
534
737
|
});
|
|
@@ -537,5 +740,5 @@ var index = (ctx, options) => {
|
|
|
537
740
|
};
|
|
538
741
|
|
|
539
742
|
exports.AscfApp = AscfApp;
|
|
540
|
-
exports
|
|
743
|
+
exports.default = index;
|
|
541
744
|
//# sourceMappingURL=index.js.map
|