@zhin.js/adapter-telegram 2.0.5 → 2.0.7

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ccb6e24]
8
+ - zhin.js@1.0.88
9
+
10
+ ## 2.0.6
11
+
12
+ ### Patch Changes
13
+
14
+ - 90d9efd: fix: 处理包名
15
+ - Updated dependencies [90d9efd]
16
+ - @zhin.js/logger@0.1.69
17
+ - zhin.js@1.0.87
18
+ - @zhin.js/host-api@0.0.1
19
+ - @zhin.js/host-router@0.0.1
20
+
3
21
  ## 2.0.5
4
22
 
5
23
  ### Patch Changes
@@ -10,7 +28,7 @@
10
28
  - @zhin.js/client@1.1.4
11
29
  - zhin.js@1.0.86
12
30
  - @zhin.js/console@3.0.5
13
- - @zhin.js/http@1.0.79
31
+ - @zhin.js/host-router@1.0.79
14
32
 
15
33
  ## 2.0.4
16
34
 
@@ -19,7 +37,7 @@
19
37
  - zhin.js@1.0.85
20
38
  - @zhin.js/logger@0.1.67
21
39
  - @zhin.js/console@3.0.4
22
- - @zhin.js/http@1.0.78
40
+ - @zhin.js/host-router@1.0.78
23
41
 
24
42
  ## 2.0.3
25
43
 
@@ -32,7 +50,7 @@
32
50
  - zhin.js@1.0.84
33
51
  - @zhin.js/logger@0.1.66
34
52
  - @zhin.js/client@1.1.3
35
- - @zhin.js/http@1.0.77
53
+ - @zhin.js/host-router@1.0.77
36
54
 
37
55
  ## 2.0.2
38
56
 
@@ -41,7 +59,7 @@
41
59
  - 775427e: fix: edge 支持
42
60
  - Updated dependencies [775427e]
43
61
  - @zhin.js/console@3.0.2
44
- - @zhin.js/http@1.0.76
62
+ - @zhin.js/host-router@1.0.76
45
63
  - @zhin.js/client@1.1.2
46
64
  - zhin.js@1.0.83
47
65
  - @zhin.js/logger@0.1.65
@@ -53,7 +71,7 @@
53
71
  - 32049f5: fix: init publish
54
72
  - Updated dependencies [32049f5]
55
73
  - @zhin.js/console@3.0.1
56
- - @zhin.js/http@1.0.75
74
+ - @zhin.js/host-router@1.0.75
57
75
  - @zhin.js/logger@0.1.64
58
76
  - @zhin.js/client@1.1.1
59
77
  - zhin.js@1.0.82
@@ -74,7 +92,7 @@
74
92
  - zhin.js@1.0.81
75
93
  - @zhin.js/logger@0.1.63
76
94
  - @zhin.js/console@2.0.24
77
- - @zhin.js/http@1.0.74
95
+ - @zhin.js/host-router@1.0.74
78
96
 
79
97
  ## 1.0.68
80
98
 
@@ -83,7 +101,7 @@
83
101
  - zhin.js@1.0.80
84
102
  - @zhin.js/logger@0.1.62
85
103
  - @zhin.js/console@2.0.23
86
- - @zhin.js/http@1.0.73
104
+ - @zhin.js/host-router@1.0.73
87
105
 
88
106
  ## 1.0.67
89
107
 
@@ -92,7 +110,7 @@
92
110
  - zhin.js@1.0.79
93
111
  - @zhin.js/logger@0.1.61
94
112
  - @zhin.js/console@2.0.22
95
- - @zhin.js/http@1.0.72
113
+ - @zhin.js/host-router@1.0.72
96
114
 
97
115
  ## 1.0.66
98
116
 
@@ -102,7 +120,7 @@
102
120
  - @zhin.js/console@2.0.21
103
121
  - zhin.js@1.0.78
104
122
  - @zhin.js/logger@0.1.60
105
- - @zhin.js/http@1.0.71
123
+ - @zhin.js/host-router@1.0.71
106
124
 
107
125
  ## 1.0.65
108
126
 
@@ -111,7 +129,7 @@
111
129
  - zhin.js@1.0.77
112
130
  - @zhin.js/logger@0.1.59
113
131
  - @zhin.js/console@2.0.20
114
- - @zhin.js/http@1.0.70
132
+ - @zhin.js/host-router@1.0.70
115
133
 
116
134
  ## 1.0.64
117
135
 
@@ -121,7 +139,7 @@
121
139
  - zhin.js@1.0.76
122
140
  - @zhin.js/logger@0.1.58
123
141
  - @zhin.js/console@2.0.19
124
- - @zhin.js/http@1.0.69
142
+ - @zhin.js/host-router@1.0.69
125
143
 
126
144
  ## 1.0.63
127
145
 
@@ -130,7 +148,7 @@
130
148
  - zhin.js@1.0.75
131
149
  - @zhin.js/logger@0.1.57
132
150
  - @zhin.js/console@2.0.18
133
- - @zhin.js/http@1.0.68
151
+ - @zhin.js/host-router@1.0.68
134
152
 
135
153
  ## 1.0.62
136
154
 
@@ -140,7 +158,7 @@
140
158
  - zhin.js@1.0.74
141
159
  - @zhin.js/logger@0.1.56
142
160
  - @zhin.js/console@2.0.17
143
- - @zhin.js/http@1.0.67
161
+ - @zhin.js/host-router@1.0.67
144
162
 
145
163
  ## 1.0.61
146
164
 
@@ -150,7 +168,7 @@
150
168
  - zhin.js@1.0.73
151
169
  - @zhin.js/logger@0.1.55
152
170
  - @zhin.js/console@2.0.16
153
- - @zhin.js/http@1.0.66
171
+ - @zhin.js/host-router@1.0.66
154
172
 
155
173
  ## 1.0.60
156
174
 
@@ -177,7 +195,7 @@
177
195
  - @zhin.js/client@1.0.18
178
196
  - zhin.js@1.0.72
179
197
  - @zhin.js/console@2.0.13
180
- - @zhin.js/http@1.0.65
198
+ - @zhin.js/host-router@1.0.65
181
199
 
182
200
  ## 1.0.57
183
201
 
@@ -196,7 +214,7 @@
196
214
  - @zhin.js/client@1.0.17
197
215
  - zhin.js@1.0.71
198
216
  - @zhin.js/console@2.0.11
199
- - @zhin.js/http@1.0.64
217
+ - @zhin.js/host-router@1.0.64
200
218
 
201
219
  ## 1.0.55
202
220
 
@@ -205,14 +223,14 @@
205
223
  - zhin.js@1.0.68
206
224
  - @zhin.js/logger@0.1.52
207
225
  - @zhin.js/console@2.0.10
208
- - @zhin.js/http@1.0.63
226
+ - @zhin.js/host-router@1.0.63
209
227
 
210
228
  ## 1.0.54
211
229
 
212
230
  ### Patch Changes
213
231
 
214
232
  - Updated dependencies [0eba6d6]
215
- - @zhin.js/http@1.0.62
233
+ - @zhin.js/host-router@1.0.62
216
234
  - zhin.js@1.0.67
217
235
  - @zhin.js/logger@0.1.51
218
236
  - @zhin.js/console@2.0.9
@@ -224,7 +242,7 @@
224
242
  - zhin.js@1.0.66
225
243
  - @zhin.js/logger@0.1.50
226
244
  - @zhin.js/console@2.0.8
227
- - @zhin.js/http@1.0.61
245
+ - @zhin.js/host-router@1.0.61
228
246
 
229
247
  ## 1.0.52
230
248
 
@@ -233,7 +251,7 @@
233
251
  - zhin.js@1.0.65
234
252
  - @zhin.js/logger@0.1.49
235
253
  - @zhin.js/console@2.0.7
236
- - @zhin.js/http@1.0.60
254
+ - @zhin.js/host-router@1.0.60
237
255
 
238
256
  ## 1.0.51
239
257
 
@@ -245,7 +263,7 @@
245
263
  - @zhin.js/client@1.0.16
246
264
  - zhin.js@1.0.64
247
265
  - @zhin.js/console@2.0.6
248
- - @zhin.js/http@1.0.59
266
+ - @zhin.js/host-router@1.0.59
249
267
 
250
268
  ## 1.0.50
251
269
 
@@ -254,7 +272,7 @@
254
272
  - ba30934: fix: web 优化
255
273
  - Updated dependencies [ba30934]
256
274
  - @zhin.js/console@2.0.5
257
- - @zhin.js/http@1.0.58
275
+ - @zhin.js/host-router@1.0.58
258
276
  - zhin.js@1.0.63
259
277
  - @zhin.js/logger@0.1.47
260
278
 
package/client/index.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import type { PluginRegisterHostApi } from '@zhin.js/console-types'
1
+ import type { PluginRegisterHostApi } from '@zhin.js/contract'
2
2
  import TelegramDashboard from './Dashboard'
3
3
 
4
4
  export function register(api: PluginRegisterHostApi) {
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../node_modules/@zhin.js/console/browser.tsconfig.json",
2
+ "extends": "../node_modules/@zhin.js/host-api/browser.tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "../dist"
5
5
  },
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { TelegramAdapter } from "./adapter.js";
2
- import { PageManager } from "@zhin.js/console";
2
+ import { PageManager } from "@zhin.js/host-api";
3
3
  declare module "zhin.js" {
4
4
  namespace Plugin {
5
5
  interface Contexts {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,QAAQ,SAAS,CAAC;IACvB,UAAU,MAAM,CAAC;QACf,UAAU,QAAQ;YAChB,GAAG,EAAE,WAAW,CAAC;SAClB;KACF;CACF;AAED,OAAO,QAAQ,SAAS,CAAC;IACvB,UAAU,QAAQ;QAChB,QAAQ,EAAE,eAAe,CAAC;KAC3B;CACF;AAED,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,QAAQ,SAAS,CAAC;IACvB,UAAU,MAAM,CAAC;QACf,UAAU,QAAQ;YAChB,GAAG,EAAE,WAAW,CAAC;SAClB;KACF;CACF;AAED,OAAO,QAAQ,SAAS,CAAC;IACvB,UAAU,QAAQ;QAChB,QAAQ,EAAE,eAAe,CAAC;KAC3B;CACF;AAED,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/adapter-telegram",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "Zhin.js adapter for Telegram",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -40,25 +40,27 @@
40
40
  "@types/react-dom": "^19.2.3",
41
41
  "lucide-react": "^1.17.0",
42
42
  "typescript": "^6.0.3",
43
- "@zhin.js/cli": "1.0.82",
44
- "zhin.js": "1.0.86",
45
- "@zhin.js/console": "3.0.5"
43
+ "@zhin.js/cli": "1.0.84",
44
+ "@zhin.js/host-api": "0.0.1",
45
+ "@zhin.js/contract": "1.0.0",
46
+ "zhin.js": "1.0.88"
46
47
  },
47
48
  "peerDependencies": {
48
- "@zhin.js/console": "3.0.5",
49
- "@zhin.js/http": "1.0.79",
50
- "@zhin.js/client": "1.1.4",
51
- "@zhin.js/logger": "0.1.68",
52
- "zhin.js": "1.0.86"
49
+ "@zhin.js/client": "2.0.0",
50
+ "@zhin.js/host-api": "0.0.1",
51
+ "@zhin.js/contract": "1.0.0",
52
+ "@zhin.js/host-router": "0.0.1",
53
+ "@zhin.js/logger": "0.1.69",
54
+ "zhin.js": "1.0.88"
53
55
  },
54
56
  "peerDependenciesMeta": {
55
57
  "@zhin.js/client": {
56
58
  "optional": true
57
59
  },
58
- "@zhin.js/http": {
60
+ "@zhin.js/host-router": {
59
61
  "optional": true
60
62
  },
61
- "@zhin.js/console": {
63
+ "@zhin.js/host-api": {
62
64
  "optional": true
63
65
  }
64
66
  },
package/src/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  import path from "node:path";
5
5
  import { usePlugin, type Plugin, type Context, type IGroupManagement, createGroupManagementTools, type ToolFeature } from "zhin.js";
6
6
  import { TelegramAdapter } from "./adapter.js";
7
- import { PageManager } from "@zhin.js/console";
7
+ import { PageManager } from "@zhin.js/host-api";
8
8
 
9
9
  declare module "zhin.js" {
10
10
  namespace Plugin {