@tarojs/taro 4.1.8 → 4.1.9-alpha.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/package.json +9 -9
- package/types/api/share/index.d.ts +37 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.9-alpha.0",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"author": "O2Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@types/postcss-url": "^10.0.4",
|
|
27
|
-
"@tarojs/
|
|
28
|
-
"@tarojs/
|
|
27
|
+
"@tarojs/runtime": "4.1.9-alpha.0",
|
|
28
|
+
"@tarojs/api": "4.1.9-alpha.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"html-webpack-plugin": "^5.6.0",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"webpack-chain": "^6.5.1",
|
|
35
35
|
"webpack-dev-server": "^4.15.2",
|
|
36
36
|
"rollup": "^3.29.4",
|
|
37
|
-
"@tarojs/components": "4.1.
|
|
38
|
-
"@tarojs/helper": "4.1.
|
|
39
|
-
"@tarojs/shared": "4.1.
|
|
37
|
+
"@tarojs/components": "4.1.9-alpha.0",
|
|
38
|
+
"@tarojs/helper": "4.1.9-alpha.0",
|
|
39
|
+
"@tarojs/shared": "4.1.9-alpha.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@types/react": "^18",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"webpack": "^5",
|
|
48
48
|
"webpack-chain": "^6",
|
|
49
49
|
"webpack-dev-server": "^4",
|
|
50
|
-
"@tarojs/
|
|
51
|
-
"@tarojs/
|
|
52
|
-
"@tarojs/
|
|
50
|
+
"@tarojs/components": "4.1.9-alpha.0",
|
|
51
|
+
"@tarojs/helper": "4.1.9-alpha.0",
|
|
52
|
+
"@tarojs/shared": "4.1.9-alpha.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@types/react": {
|
|
@@ -3,26 +3,52 @@ import Taro from '../../index'
|
|
|
3
3
|
declare module '../../index' {
|
|
4
4
|
namespace updateShareMenu {
|
|
5
5
|
interface Option {
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
/** 是否使用带 shareTicket 的转发[详情](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html)
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
withShareTicket?: boolean
|
|
10
|
+
/** 是否是动态消息,详见[动态消息](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/updatable-message.html)
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
13
|
isUpdatableMessage?: boolean
|
|
14
|
+
/** 动态消息的 activityId。通过 [updatableMessage.createActivityId](https://developers.weixin.qq.com/miniprogram/dev/api/share/errorupdatableMessage.createActivityId)) 接口获取
|
|
15
|
+
*/
|
|
16
|
+
activityId?: string
|
|
17
|
+
/** 群待办消息的id,通过toDoActivityId可以把多个群待办消息聚合为同一个。通过 [updatableMessage.createActivityId](https://developers.weixin.qq.com/miniprogram/dev/api/share/errorupdatableMessage.createActivityId) 接口获取。详见[群待办消息](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html
|
|
18
|
+
*/
|
|
19
|
+
toDoActivityId?: string
|
|
20
|
+
/** 动态消息的模板信息
|
|
21
|
+
*/
|
|
22
|
+
templateInfo?: UpdatableMessageFrontEndTemplateInfo
|
|
23
|
+
/** 是否是私密消息。详见 [小程序私密消息](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/private-message.html)
|
|
24
|
+
*/
|
|
25
|
+
isPrivateMessage?: boolean
|
|
26
|
+
/** 参与用户此聊天室下的 group_openid 列表
|
|
27
|
+
* @default []
|
|
28
|
+
*/
|
|
29
|
+
participant?: string[]
|
|
30
|
+
/** 聊天工具模式特殊动态消息
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
useForChatTool?: boolean
|
|
34
|
+
/** 指定成员的方式
|
|
35
|
+
* @default 1
|
|
36
|
+
*/
|
|
37
|
+
chooseType?: number
|
|
14
38
|
/** 接口调用成功的回调函数 */
|
|
15
39
|
success?: (res: TaroGeneral.CallbackResult) => void
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
|
|
40
|
+
/** 接口调用失败的回调函数 */
|
|
41
|
+
fail?: (res: TaroGeneral.CallbackResult) => void
|
|
42
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
43
|
+
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
20
44
|
}
|
|
21
45
|
|
|
22
46
|
/** 动态消息的模板信息 */
|
|
23
47
|
interface UpdatableMessageFrontEndTemplateInfo {
|
|
24
48
|
/** 参数列表 */
|
|
25
49
|
parameterList: UpdatableMessageFrontEndParameter[]
|
|
50
|
+
/** 模板ID */
|
|
51
|
+
templateId: string
|
|
26
52
|
}
|
|
27
53
|
/** 参数列表 */
|
|
28
54
|
interface UpdatableMessageFrontEndParameter {
|