@we-debug/plugin-launcher 0.32.0 → 0.32.2

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,28 @@
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.32.2](https://github.com/dlhandsome/we-debug/compare/v0.32.1...v0.32.2) (2024-06-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **plugin-launcher:** fixed empty pkg ([46d797f](https://github.com/dlhandsome/we-debug/commit/46d797f514047fb9f21137dda01e16e733c4806c))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.32.1](https://github.com/dlhandsome/we-debug/compare/v0.32.0...v0.32.1) (2024-06-24)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **plugin-launcher:** fixed empty pkg ([87f8591](https://github.com/dlhandsome/we-debug/commit/87f859196f323325f3d332374d110c8111a096e3))
23
+
24
+
25
+
26
+
27
+
6
28
  # [0.32.0](https://github.com/dlhandsome/we-debug/compare/v0.31.18...v0.32.0) (2024-06-24)
7
29
 
8
30
  **Note:** Version bump only for package @we-debug/plugin-launcher
@@ -0,0 +1,3 @@
1
+ import { IPlugin } from './types';
2
+ declare const LauncherPlugin: IPlugin;
3
+ export default LauncherPlugin;
package/dist/index.js ADDED
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var LauncherPlugin = {
4
+ install: function () { }
5
+ };
6
+ LauncherPlugin.install = function (weDebug, options) {
7
+ if (options === void 0) { options = {}; }
8
+ if (LauncherPlugin.installed)
9
+ return;
10
+ LauncherPlugin.installed = true;
11
+ var launcherBadge = weDebug.createBadge(Object.assign({}, {
12
+ key: 'debug',
13
+ value: '调试胶囊',
14
+ show: true,
15
+ draggable: true,
16
+ position: {
17
+ right: 10,
18
+ bottom: 20
19
+ },
20
+ handler: {
21
+ bindTap: function () {
22
+ weDebug.event.emit('debug:mask:show-modal');
23
+ }
24
+ }
25
+ }, options));
26
+ weDebug.addBadge(launcherBadge);
27
+ };
28
+ exports.default = LauncherPlugin;
@@ -0,0 +1,6 @@
1
+ import { IPluginInstance, IFormRuleManageConstructorOption } from '@we-debug/core';
2
+ export * from '@we-debug/core';
3
+ export interface IPlugin extends IPluginInstance {
4
+ installed?: boolean;
5
+ }
6
+ export type IPluginInitOption = Partial<IFormRuleManageConstructorOption>;
package/dist/types.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("@we-debug/core"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@we-debug/plugin-launcher",
3
- "version": "0.32.0",
3
+ "version": "0.32.2",
4
4
  "description": "launcher plugin for we-debug",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types.d.ts",
@@ -20,5 +20,5 @@
20
20
  "peerDependencies": {
21
21
  "@we-debug/core": "^0.31.11"
22
22
  },
23
- "gitHead": "f5cb28acb9cecc2463c6f1a9307646274f3aafee"
23
+ "gitHead": "14d03ad65c8cd71fd3fbdc17e3121bcf9236c9fa"
24
24
  }