@zhin.js/adapter-wechat-mp 1.1.24 → 1.1.26
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/CHANGELOG.md +22 -0
- package/lib/console-spec.js +50 -4
- package/package.json +14 -14
- package/src/console-spec.ts +50 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @zhin.js/adapter-wechat-mp
|
|
2
2
|
|
|
3
|
+
## 1.1.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0d76a7c: Overhaul Console interactive workbenches, platform-specific adapter account onboarding/login flows, DeclarativePageView visual/interactive capabilities, and official utility plugin Console pages.
|
|
8
|
+
- Updated dependencies [0d76a7c]
|
|
9
|
+
- @zhin.js/adapter@1.1.32
|
|
10
|
+
- @zhin.js/core@1.1.60
|
|
11
|
+
|
|
12
|
+
## 1.1.25
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [8adce16]
|
|
17
|
+
- @zhin.js/console-contract@1.1.5
|
|
18
|
+
- @zhin.js/host-http@1.1.17
|
|
19
|
+
- @zhin.js/core@1.1.59
|
|
20
|
+
- @zhin.js/page@1.1.17
|
|
21
|
+
- @zhin.js/adapter@1.1.31
|
|
22
|
+
- @zhin.js/feature-kit@1.1.15
|
|
23
|
+
- @zhin.js/skill@1.1.16
|
|
24
|
+
|
|
3
25
|
## 1.1.24
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/lib/console-spec.js
CHANGED
|
@@ -2,10 +2,56 @@ export const wechatMpConsoleSpec = {
|
|
|
2
2
|
adapterKey: 'wechat-mp',
|
|
3
3
|
adapterDisplayName: '微信公众号',
|
|
4
4
|
fields: [
|
|
5
|
-
{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
{
|
|
6
|
+
key: 'appId',
|
|
7
|
+
required: true,
|
|
8
|
+
env: true,
|
|
9
|
+
label: '公众号 AppID',
|
|
10
|
+
labelI18n: { en: 'Official Account AppID' },
|
|
11
|
+
group: '企业应用凭证',
|
|
12
|
+
groupI18n: { en: 'Enterprise App Credentials' },
|
|
13
|
+
placeholder: 'wx1234567890abcdef',
|
|
14
|
+
description: '微信公众平台「基本配置」中的开发者 ID (AppID)',
|
|
15
|
+
descriptionI18n: { en: 'WeChat Official Account app ID' },
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
key: 'appSecret',
|
|
19
|
+
required: true,
|
|
20
|
+
env: true,
|
|
21
|
+
label: '公众号 AppSecret',
|
|
22
|
+
labelI18n: { en: 'Official Account AppSecret' },
|
|
23
|
+
group: '企业应用凭证',
|
|
24
|
+
groupI18n: { en: 'Enterprise App Credentials' },
|
|
25
|
+
placeholder: '开发者密码 AppSecret',
|
|
26
|
+
placeholderI18n: { en: 'Developer password AppSecret' },
|
|
27
|
+
description: '微信公众平台「基本配置」中的开发者密码 (AppSecret)',
|
|
28
|
+
descriptionI18n: { en: 'WeChat Official Account app secret' },
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
key: 'token',
|
|
32
|
+
required: true,
|
|
33
|
+
env: true,
|
|
34
|
+
label: '服务器配置 Token',
|
|
35
|
+
labelI18n: { en: 'Server Token' },
|
|
36
|
+
group: '事件回调与加解密',
|
|
37
|
+
groupI18n: { en: 'Event Callback & Encryption' },
|
|
38
|
+
placeholder: '服务器配置的验证令牌 Token',
|
|
39
|
+
placeholderI18n: { en: 'Server configuration verification token' },
|
|
40
|
+
description: '微信公众平台「服务器配置」中的令牌 (Token)',
|
|
41
|
+
descriptionI18n: { en: 'Server configuration token' },
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
key: 'encodingAESKey',
|
|
45
|
+
env: true,
|
|
46
|
+
label: 'EncodingAESKey (消息加解密密钥)',
|
|
47
|
+
labelI18n: { en: 'EncodingAESKey' },
|
|
48
|
+
group: '事件回调与加解密',
|
|
49
|
+
groupI18n: { en: 'Event Callback & Encryption' },
|
|
50
|
+
placeholder: '43 位字符(安全模式必填,明文模式可留空)',
|
|
51
|
+
placeholderI18n: { en: '43-char key (required for encrypted mode)' },
|
|
52
|
+
description: '消息加解密密钥(EncodingAESKey)',
|
|
53
|
+
descriptionI18n: { en: 'Message encryption key' },
|
|
54
|
+
},
|
|
9
55
|
],
|
|
10
56
|
docsUrl: 'https://zhin.js.org/adapters/wechat-mp',
|
|
11
57
|
readPermission: 'wechat-mp:read',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/adapter-wechat-mp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Zhin.js WeChat Official Account adapter for Plugin Runtime (HTTP webhook)",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -8,22 +8,22 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"axios": "^1.20.0",
|
|
10
10
|
"xml2js": "^0.6.2",
|
|
11
|
-
"@zhin.js/adapter": "1.1.
|
|
12
|
-
"@zhin.js/console-contract": "1.1.
|
|
13
|
-
"@zhin.js/core": "1.1.
|
|
14
|
-
"@zhin.js/feature-kit": "1.1.
|
|
15
|
-
"@zhin.js/host-http": "1.1.
|
|
11
|
+
"@zhin.js/adapter": "1.1.32",
|
|
12
|
+
"@zhin.js/console-contract": "1.1.5",
|
|
13
|
+
"@zhin.js/core": "1.1.60",
|
|
14
|
+
"@zhin.js/feature-kit": "1.1.15",
|
|
15
|
+
"@zhin.js/host-http": "1.1.17",
|
|
16
16
|
"@zhin.js/im-contract": "1.1.13",
|
|
17
17
|
"@zhin.js/logger": "1.1.2",
|
|
18
|
-
"@zhin.js/page": "1.1.
|
|
19
|
-
"@zhin.js/skill": "1.1.
|
|
18
|
+
"@zhin.js/page": "1.1.17",
|
|
19
|
+
"@zhin.js/skill": "1.1.16"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@zhin.js/adapter": "^1.1.
|
|
23
|
-
"@zhin.js/command": "^1.1.
|
|
24
|
-
"@zhin.js/core": "^1.1.
|
|
25
|
-
"@zhin.js/host-http": "^1.1.
|
|
26
|
-
"zhin.js": "^1.1.
|
|
22
|
+
"@zhin.js/adapter": "^1.1.32",
|
|
23
|
+
"@zhin.js/command": "^1.1.17",
|
|
24
|
+
"@zhin.js/core": "^1.1.60",
|
|
25
|
+
"@zhin.js/host-http": "^1.1.17",
|
|
26
|
+
"zhin.js": "^1.1.25"
|
|
27
27
|
},
|
|
28
28
|
"peerDependenciesMeta": {
|
|
29
29
|
"@zhin.js/command": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/xml2js": "^0.4.14",
|
|
39
39
|
"typescript": "^6.0.3",
|
|
40
40
|
"vitest": "^4.1.10",
|
|
41
|
-
"zhin.js": "1.1.
|
|
41
|
+
"zhin.js": "1.1.25"
|
|
42
42
|
},
|
|
43
43
|
"keywords": [
|
|
44
44
|
"zhin",
|
package/src/console-spec.ts
CHANGED
|
@@ -7,10 +7,56 @@ export const wechatMpConsoleSpec = {
|
|
|
7
7
|
adapterKey: 'wechat-mp',
|
|
8
8
|
adapterDisplayName: '微信公众号',
|
|
9
9
|
fields: [
|
|
10
|
-
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
{
|
|
11
|
+
key: 'appId',
|
|
12
|
+
required: true,
|
|
13
|
+
env: true,
|
|
14
|
+
label: '公众号 AppID',
|
|
15
|
+
labelI18n: { en: 'Official Account AppID' },
|
|
16
|
+
group: '企业应用凭证',
|
|
17
|
+
groupI18n: { en: 'Enterprise App Credentials' },
|
|
18
|
+
placeholder: 'wx1234567890abcdef',
|
|
19
|
+
description: '微信公众平台「基本配置」中的开发者 ID (AppID)',
|
|
20
|
+
descriptionI18n: { en: 'WeChat Official Account app ID' },
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: 'appSecret',
|
|
24
|
+
required: true,
|
|
25
|
+
env: true,
|
|
26
|
+
label: '公众号 AppSecret',
|
|
27
|
+
labelI18n: { en: 'Official Account AppSecret' },
|
|
28
|
+
group: '企业应用凭证',
|
|
29
|
+
groupI18n: { en: 'Enterprise App Credentials' },
|
|
30
|
+
placeholder: '开发者密码 AppSecret',
|
|
31
|
+
placeholderI18n: { en: 'Developer password AppSecret' },
|
|
32
|
+
description: '微信公众平台「基本配置」中的开发者密码 (AppSecret)',
|
|
33
|
+
descriptionI18n: { en: 'WeChat Official Account app secret' },
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
key: 'token',
|
|
37
|
+
required: true,
|
|
38
|
+
env: true,
|
|
39
|
+
label: '服务器配置 Token',
|
|
40
|
+
labelI18n: { en: 'Server Token' },
|
|
41
|
+
group: '事件回调与加解密',
|
|
42
|
+
groupI18n: { en: 'Event Callback & Encryption' },
|
|
43
|
+
placeholder: '服务器配置的验证令牌 Token',
|
|
44
|
+
placeholderI18n: { en: 'Server configuration verification token' },
|
|
45
|
+
description: '微信公众平台「服务器配置」中的令牌 (Token)',
|
|
46
|
+
descriptionI18n: { en: 'Server configuration token' },
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
key: 'encodingAESKey',
|
|
50
|
+
env: true,
|
|
51
|
+
label: 'EncodingAESKey (消息加解密密钥)',
|
|
52
|
+
labelI18n: { en: 'EncodingAESKey' },
|
|
53
|
+
group: '事件回调与加解密',
|
|
54
|
+
groupI18n: { en: 'Event Callback & Encryption' },
|
|
55
|
+
placeholder: '43 位字符(安全模式必填,明文模式可留空)',
|
|
56
|
+
placeholderI18n: { en: '43-char key (required for encrypted mode)' },
|
|
57
|
+
description: '消息加解密密钥(EncodingAESKey)',
|
|
58
|
+
descriptionI18n: { en: 'Message encryption key' },
|
|
59
|
+
},
|
|
14
60
|
] as readonly AdapterConsoleField[],
|
|
15
61
|
docsUrl: 'https://zhin.js.org/adapters/wechat-mp',
|
|
16
62
|
readPermission: 'wechat-mp:read',
|