@tarojs/plugin-platform-alipay 3.5.0-beta.4 → 3.5.0-theta.0

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/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  module.exports = require('./dist/index.js').default
2
+
2
3
  module.exports.default = module.exports
3
4
  module.exports.Alipay = require('./dist/index.js').Alipay
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/plugin-platform-alipay",
3
- "version": "3.5.0-beta.4",
3
+ "version": "3.5.0-theta.0",
4
4
  "description": "支付宝小程序平台插件",
5
5
  "author": "Chen-jj",
6
6
  "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro-alipay#readme",
@@ -27,9 +27,8 @@
27
27
  "url": "https://github.com/NervJS/taro/issues"
28
28
  },
29
29
  "dependencies": {
30
- "@tarojs/components": "3.5.0-beta.4",
31
- "@tarojs/service": "3.5.0-beta.4",
32
- "@tarojs/shared": "3.5.0-beta.4"
33
- },
34
- "gitHead": "7aca7841ed7e2af1b182ff5d24e91f44730ce783"
30
+ "@tarojs/components": "workspace:*",
31
+ "@tarojs/service": "workspace:*",
32
+ "@tarojs/shared": "workspace:*"
33
+ }
35
34
  }
@@ -1,5 +1,6 @@
1
- export * from '@tarojs/components/mini';
2
- export declare const Lottie = "lottie";
3
- export declare const Lifestyle = "lifestyle";
4
- export declare const LifeFollow = "life-follow";
5
- export declare const ContactButton = "contact-button";
1
+ declare const Lottie = "lottie";
2
+ declare const Lifestyle = "lifestyle";
3
+ declare const LifeFollow = "life-follow";
4
+ declare const ContactButton = "contact-button";
5
+ export * from '@tarojs/components/mini';
6
+ export { Lottie, Lifestyle, LifeFollow, ContactButton };
package/types/index.d.ts CHANGED
@@ -1,5 +1,78 @@
1
- import type { IPluginContext } from '@tarojs/service';
2
- import Alipay from './program';
3
- export { Alipay };
4
- declare const _default: (ctx: IPluginContext) => void;
5
- export default _default;
1
+ import { IPluginContext, TaroPlatformBase } from '@tarojs/service';
2
+ import { RecursiveTemplate } from "@tarojs/shared/dist/template";
3
+ declare class Template extends RecursiveTemplate {
4
+ exportExpr: string;
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
+ buildXsTemplate(): string;
18
+ replacePropName(name: any, value: any, compName: any, componentAlias: any): any;
19
+ getEvents(): {
20
+ onTap: string;
21
+ onTouchMove: string;
22
+ onTouchEnd: string;
23
+ onTouchCancel: string;
24
+ onLongTap: string;
25
+ };
26
+ buildThirdPartyAttr(attrs: Set<string>): string;
27
+ createMiniComponents(components: any): any;
28
+ modifyLoopBody: (child: string, nodeName: string) => string;
29
+ modifyLoopContainer: (children: string, nodeName: string) => string;
30
+ modifyTemplateResult: (res: string, nodeName: string) => string;
31
+ modifyThirdPartyLoopBody: () => string;
32
+ buildXSTmpExtra(): string;
33
+ }
34
+ declare class Alipay extends TaroPlatformBase {
35
+ platform: string;
36
+ globalObject: string;
37
+ runtimePath: string;
38
+ taroComponentsPath: string;
39
+ fileType: {
40
+ templ: string;
41
+ style: string;
42
+ config: string;
43
+ script: string;
44
+ xs: string;
45
+ };
46
+ template: Template;
47
+ /**
48
+ * 1. setupTransaction - init
49
+ * 2. setup
50
+ * 3. setupTransaction - close
51
+ * 4. buildTransaction - init
52
+ * 5. build
53
+ * 6. buildTransaction - close
54
+ */
55
+ constructor(ctx: any, config: any);
56
+ /**
57
+ * 转换用户编写的配置(微信小程序标准)为支付宝小程序标准
58
+ */
59
+ modifyMiniConfigs(): void;
60
+ /**
61
+ * 增加组件或修改组件属性
62
+ */
63
+ modifyComponents(): void;
64
+ /**
65
+ * 修改 Slider 组件属性
66
+ */
67
+ modifySlider(slider: any): void;
68
+ /**
69
+ * 修改 Swiper 组件属性
70
+ */
71
+ modifySwiper(swiper: any): void;
72
+ /**
73
+ * 修改 Webpack 配置
74
+ */
75
+ modifyWebpackConfig(): void;
76
+ }
77
+ declare const _default: (ctx: IPluginContext) => void;
78
+ export { _default as default, Alipay };
@@ -1,10 +1,141 @@
1
- import { initNativeApi, handleSyncApis, transformMeta, modifyApis, modifyAsyncResult, request } from './apis';
2
- export { initNativeApi, handleSyncApis, transformMeta, modifyApis, modifyAsyncResult, request };
3
- export * from './components';
4
- export * from './apis-list';
5
- export declare const hostConfig: {
6
- initNativeApi: typeof initNativeApi;
7
- getEventCenter(Events: any): any;
8
- modifyTaroEvent(event: any, node: any): void;
9
- isBubbleEvents(eventName: any): boolean;
10
- };
1
+ declare function request(options: any): any;
2
+ declare function handleSyncApis(key: string, global: Record<string, any>, args: any[]): any;
3
+ declare function transformMeta(api: string, options: Record<string, any>): {
4
+ key: string;
5
+ options: Record<string, any>;
6
+ };
7
+ declare function modifyApis(apis: Set<string>): void;
8
+ declare function modifyAsyncResult(key: string, res: any): void;
9
+ declare function initNativeApi(taro: any): void;
10
+ declare const components: {
11
+ View: {
12
+ "disable-scroll": string;
13
+ hidden: string;
14
+ bindAppear: string;
15
+ bindDisappear: string;
16
+ bindFirstAppear: string;
17
+ };
18
+ Text: {
19
+ "number-of-lines": string;
20
+ };
21
+ Map: {
22
+ skew: string;
23
+ rotate: string;
24
+ polygons: string;
25
+ "include-padding": string;
26
+ "ground-overlays": string;
27
+ "tile-overlay": string;
28
+ "custom-map-style": string;
29
+ setting: string;
30
+ optimize: string;
31
+ bindRegionChange: string;
32
+ bindPanelTap: string;
33
+ };
34
+ Button: {
35
+ scope: string;
36
+ "public-id": string;
37
+ bindGetAuthorize: string;
38
+ bindError: string;
39
+ };
40
+ Checkbox: {
41
+ bindChange: string;
42
+ };
43
+ Input: {
44
+ "random-number": string;
45
+ controlled: string;
46
+ enableNative: string;
47
+ };
48
+ Slider: {
49
+ "track-size": string;
50
+ "handle-size": string;
51
+ "handle-color": string;
52
+ };
53
+ Switch: {
54
+ controlled: string;
55
+ };
56
+ Textarea: {
57
+ "show-count": string;
58
+ controlled: string;
59
+ enableNative: string;
60
+ };
61
+ MovableView: {
62
+ bindChangeEnd: string;
63
+ };
64
+ ScrollView: {
65
+ "scroll-animation-duration": string;
66
+ "trap-scroll": string;
67
+ };
68
+ Swiper: {
69
+ "active-class": string;
70
+ "changing-class": string;
71
+ acceleration: string;
72
+ "disable-programmatic-animation": string;
73
+ "disable-touch": string;
74
+ bindAnimationEnd: string;
75
+ };
76
+ Image: {
77
+ "default-source": string;
78
+ };
79
+ Canvas: {
80
+ type: string;
81
+ width: string;
82
+ height: string;
83
+ bindReady: string;
84
+ };
85
+ Video: {
86
+ "poster-size": string;
87
+ "mobilenet-hint-type": string;
88
+ enableNative: string;
89
+ bindLoading: string;
90
+ bindUserAction: string;
91
+ bindStop: string;
92
+ bindRenderStart: string;
93
+ };
94
+ Lottie: {
95
+ autoplay: string;
96
+ path: string;
97
+ speed: string;
98
+ repeatCount: string;
99
+ autoReverse: string;
100
+ assetsPath: string;
101
+ placeholder: string;
102
+ djangoId: string;
103
+ md5: string;
104
+ optimize: string;
105
+ bindDataReady: string;
106
+ bindDataFailed: string;
107
+ bindAnimationStart: string;
108
+ bindAnimationEnd: string;
109
+ bindAnimationRepeat: string;
110
+ bindAnimationCancel: string;
111
+ bindDataLoadReady: string;
112
+ };
113
+ Lifestyle: {
114
+ "public-id": string;
115
+ memo: string;
116
+ bindFollow: string;
117
+ };
118
+ LifeFollow: {
119
+ sceneId: string;
120
+ checkFollow: string;
121
+ bindCheckFollow: string;
122
+ bindClose: string;
123
+ };
124
+ ContactButton: {
125
+ "tnt-inst-id": string;
126
+ scene: string;
127
+ size: string;
128
+ color: string;
129
+ icon: string;
130
+ "alipay-card-no": string;
131
+ "ext-info": string;
132
+ };
133
+ };
134
+ declare const needPromiseApis: Set<string>;
135
+ declare const hostConfig: {
136
+ initNativeApi: typeof initNativeApi;
137
+ getEventCenter(Events: any): any;
138
+ modifyTaroEvent(event: any, node: any): void;
139
+ isBubbleEvents(eventName: any): boolean;
140
+ };
141
+ export { initNativeApi, handleSyncApis, transformMeta, modifyApis, modifyAsyncResult, request, components, needPromiseApis, hostConfig };
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2018
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1 +0,0 @@
1
- export declare const needPromiseApis: Set<string>;
package/types/apis.d.ts DELETED
@@ -1,9 +0,0 @@
1
- export declare function request(options: any): any;
2
- export declare function handleSyncApis(key: string, global: Record<string, any>, args: any[]): any;
3
- export declare function transformMeta(api: string, options: Record<string, any>): {
4
- key: string;
5
- options: Record<string, any>;
6
- };
7
- export declare function modifyApis(apis: Set<string>): void;
8
- export declare function modifyAsyncResult(key: string, res: any): void;
9
- export declare function initNativeApi(taro: any): void;
@@ -1,124 +0,0 @@
1
- export declare const components: {
2
- View: {
3
- 'disable-scroll': string;
4
- hidden: string;
5
- bindAppear: string;
6
- bindDisappear: string;
7
- bindFirstAppear: string;
8
- };
9
- Text: {
10
- 'number-of-lines': string;
11
- };
12
- Map: {
13
- skew: string;
14
- rotate: string;
15
- polygons: string;
16
- 'include-padding': string;
17
- 'ground-overlays': string;
18
- 'tile-overlay': string;
19
- 'custom-map-style': string;
20
- setting: string;
21
- optimize: string;
22
- bindRegionChange: string;
23
- bindPanelTap: string;
24
- };
25
- Button: {
26
- scope: string;
27
- 'public-id': string;
28
- bindGetAuthorize: string;
29
- bindError: string;
30
- };
31
- Checkbox: {
32
- bindChange: string;
33
- };
34
- Input: {
35
- 'random-number': string;
36
- controlled: string;
37
- enableNative: string;
38
- };
39
- Slider: {
40
- 'track-size': string;
41
- 'handle-size': string;
42
- 'handle-color': string;
43
- };
44
- Switch: {
45
- controlled: string;
46
- };
47
- Textarea: {
48
- 'show-count': string;
49
- controlled: string;
50
- enableNative: string;
51
- };
52
- MovableView: {
53
- bindChangeEnd: string;
54
- };
55
- ScrollView: {
56
- 'scroll-animation-duration': string;
57
- 'trap-scroll': string;
58
- };
59
- Swiper: {
60
- 'active-class': string;
61
- 'changing-class': string;
62
- acceleration: string;
63
- 'disable-programmatic-animation': string;
64
- 'disable-touch': string;
65
- bindAnimationEnd: string;
66
- };
67
- Image: {
68
- 'default-source': string;
69
- };
70
- Canvas: {
71
- type: string;
72
- width: string;
73
- height: string;
74
- bindReady: string;
75
- };
76
- Video: {
77
- 'poster-size': string;
78
- 'mobilenet-hint-type': string;
79
- enableNative: string;
80
- bindLoading: string;
81
- bindUserAction: string;
82
- bindStop: string;
83
- bindRenderStart: string;
84
- };
85
- Lottie: {
86
- autoplay: string;
87
- path: string;
88
- speed: string;
89
- repeatCount: string;
90
- autoReverse: string;
91
- assetsPath: string;
92
- placeholder: string;
93
- djangoId: string;
94
- md5: string;
95
- optimize: string;
96
- bindDataReady: string;
97
- bindDataFailed: string;
98
- bindAnimationStart: string;
99
- bindAnimationEnd: string;
100
- bindAnimationRepeat: string;
101
- bindAnimationCancel: string;
102
- bindDataLoadReady: string;
103
- };
104
- Lifestyle: {
105
- 'public-id': string;
106
- memo: string;
107
- bindFollow: string;
108
- };
109
- LifeFollow: {
110
- sceneId: string;
111
- checkFollow: string;
112
- bindCheckFollow: string;
113
- bindClose: string;
114
- };
115
- ContactButton: {
116
- 'tnt-inst-id': string;
117
- scene: string;
118
- size: string;
119
- color: string;
120
- icon: string;
121
- 'alipay-card-no': string;
122
- 'ext-info': string;
123
- };
124
- };
@@ -1,45 +0,0 @@
1
- import { TaroPlatformBase } from '@tarojs/service';
2
- import { Template } from './template';
3
- export default class Alipay extends TaroPlatformBase {
4
- platform: string;
5
- globalObject: string;
6
- runtimePath: string;
7
- taroComponentsPath: string;
8
- fileType: {
9
- templ: string;
10
- style: string;
11
- config: string;
12
- script: string;
13
- xs: string;
14
- };
15
- template: Template;
16
- /**
17
- * 1. setupTransaction - init
18
- * 2. setup
19
- * 3. setupTransaction - close
20
- * 4. buildTransaction - init
21
- * 5. build
22
- * 6. buildTransaction - close
23
- */
24
- constructor(ctx: any, config: any);
25
- /**
26
- * 转换用户编写的配置(微信小程序标准)为支付宝小程序标准
27
- */
28
- modifyMiniConfigs(): void;
29
- /**
30
- * 增加组件或修改组件属性
31
- */
32
- modifyComponents(): void;
33
- /**
34
- * 修改 Slider 组件属性
35
- */
36
- modifySlider(slider: any): void;
37
- /**
38
- * 修改 Swiper 组件属性
39
- */
40
- modifySwiper(swiper: any): void;
41
- /**
42
- * 修改 Webpack 配置
43
- */
44
- modifyWebpackConfig(): void;
45
- }
@@ -1,32 +0,0 @@
1
- import { RecursiveTemplate } from '@tarojs/shared/dist/template';
2
- export declare class Template extends RecursiveTemplate {
3
- exportExpr: string;
4
- supportXS: boolean;
5
- Adapter: {
6
- if: string;
7
- else: string;
8
- elseif: string;
9
- for: string;
10
- forItem: string;
11
- forIndex: string;
12
- key: string;
13
- xs: string;
14
- type: string;
15
- };
16
- buildXsTemplate(): string;
17
- replacePropName(name: any, value: any, compName: any, componentAlias: any): any;
18
- getEvents(): {
19
- onTap: string;
20
- onTouchMove: string;
21
- onTouchEnd: string;
22
- onTouchCancel: string;
23
- onLongTap: string;
24
- };
25
- buildThirdPartyAttr(attrs: Set<string>): string;
26
- createMiniComponents(components: any): any;
27
- modifyLoopBody: (child: string, nodeName: string) => string;
28
- modifyLoopContainer: (children: string, nodeName: string) => string;
29
- modifyTemplateResult: (res: string, nodeName: string) => string;
30
- modifyThirdPartyLoopBody: () => string;
31
- buildXSTmpExtra(): string;
32
- }