@we-debug/plugin-launcher 0.50.0 → 0.51.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.51.0](https://github.com/dlhandsome/we-debug/compare/v0.50.0...v0.51.0) (2026-12-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * **miniprogram:** responsive debug panel and floating launcher ([eb08b8c](https://github.com/dlhandsome/we-debug/commit/eb08b8c6b09faab4ad2cb4aa25ae0141c347c912))
12
+
13
+
14
+
15
+
16
+
6
17
  # [0.50.0](https://github.com/dlhandsome/we-debug/compare/v0.49.2...v0.50.0) (2026-11-27)
7
18
 
8
19
  **Note:** Version bump only for package @we-debug/plugin-launcher
package/README.md CHANGED
@@ -19,13 +19,24 @@ weDebug.init({
19
19
  })
20
20
  ```
21
21
 
22
+ ## 交互
23
+
24
+ 默认以悬浮球展示:
25
+
26
+ - 点击打开调试面板
27
+ - 拖动时限制在屏幕安全区内,松手后吸附到最近的左右边缘,位置会缓存,切换页面或重启后保持
28
+ - 闲置 3 秒后半透明并向边缘缩进一半,触摸后恢复
29
+ - 启用 error 插件时,出现新错误会点亮悬浮球红点,不再单独展示 error 胶囊;打开面板会自动切到「系统」分组
30
+ - 任意插件可通过 `weDebug.showLauncherDot(key, { group })` 点亮红点并指定打开面板时定位的分组,见 [API 文档](../../../docs/api.md)
31
+
22
32
  ## 配置
23
33
 
24
34
  参数 | 说明 | 类型 | 默认值 | 版本
25
35
  -|-|-|-|-|
36
+ type | 展示形态,`launcher` 为悬浮球,`default` 为旧版胶囊 | string | `launcher` | - |
26
37
  show | 是否展示 | boolean | `true` | - |
27
38
  draggable | 是否可拖拽 | boolean | `true` | - |
28
- key | 名称 | string \| number | `debug` | - |
29
- value | 值 | string \| number | `调试胶囊` | - |
30
- color | 启动器颜色 | string | `brightgreen` | - |
31
- position | 位置信息 | object | `{ right: 10, bottom: 20 }` | - |
39
+ position | 初始位置,`left` 存在时贴左边,否则贴右边;`top` / `bottom` 决定纵向位置 | object | `{ right: 10, bottom: 20 }` | - |
40
+ key | 名称,仅 `type: 'default'` 时生效 | string \| number | `debug` | - |
41
+ value | 值,仅 `type: 'default'` 时生效 | string \| number | `调试胶囊` | - |
42
+ color | 启动器颜色,仅 `type: 'default'` 时生效 | string | `brightgreen` | - |
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ LauncherPlugin.install = function (weDebug, options) {
11
11
  var launcherBadge = weDebug.createBadge(Object.assign({}, {
12
12
  key: 'debug',
13
13
  value: '调试胶囊',
14
+ type: 'launcher',
14
15
  show: true,
15
16
  draggable: true,
16
17
  position: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@we-debug/plugin-launcher",
3
- "version": "0.50.0",
3
+ "version": "0.51.0",
4
4
  "description": "launcher plugin for we-debug",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types.d.ts",
@@ -17,5 +17,5 @@
17
17
  "readme": "ERROR: No README data found!",
18
18
  "_id": "@we-debug/plugin-launcher@0.1.1",
19
19
  "_commitid": "4a9cca9",
20
- "gitHead": "2304486ada029231f6e93b89f7491fe0e5d298c6"
20
+ "gitHead": "22641ac4972a154619c6dc8f44b1bfdcbb92c8eb"
21
21
  }